Windows Server 2008 R2 typically comes with PowerShell 2.0. To check your current version, open PowerShell and run: $PSVersionTable.PSVersion
Your server must have Windows Server 2008 R2 SP1 installed. download powershell 4.0 for windows server 2008 r2
To download and install PowerShell 4.0 on Windows Server 2008 R2, you must install the package. This version is not installed by default and requires specific prerequisites to avoid installation failure. 1. Verify Current Version Windows Server 2008 R2 typically comes with PowerShell 2
WMF 4.0 will not install without .NET 4.5 or later (e.g., 4.5.1 or 4.5.2). This version is not installed by default and
Before downloading the WMF 4.0 package, ensure your server meets these requirements:
Note: If you try to install WMF 4.0 without .NET 4.5, it may appear to succeed but will silently fail to update the version.
If you plan to use the Integrated Scripting Environment (ISE), you must enable the PowerShell ISE feature in Server Manager before upgrading. 3. Download and Install PowerShell 4.0 Upgrade Powershell 2 - Powershell 4 Server 2008 R2