Unfortunately there are a few different ways to install PowerShell, depending on the version of Windows. This tutorial provides the installation steps that are appropriate for your operating system.
Note: Before attempting to install PowerShell on a computer, confirm that it isn’t already installed!
PowerShell version 1.0 was available for installation by itself. PowerShell version 2.0 is installed as part of the Windows Management Framework. Don’t worry… WinRM is disabled by default, so this update can be safely installed without affecting the security of Windows.
Steps Common to Each Windows Operating System
There are a few requirements for installing PowerShell on Windows:
- Confirm that you have sufficient security privileges for installing software on Windows
- Verify that the pre-requisite—version 2.0 of the .NET Framework—is installed (and patched)
-
Make sure that your system is up-to-date with its Service Pack and patches:
Windows Version Minimum Service Pack Windows Server 2008 Service Pack 2 Windows Vista Service Pack 2 Windows Server 2003 R2 Service Pack 2 Windows Server 2003 Service Pack 2 Windows XP Service Pack 3
Installation on Windows 7 or Windows Server 2008 R2
PowerShell should already be installed and enabled. Inability to run PowerShell on a Windows 7 or Windows Server 2008 R2 machine indicates a problem, or it has been removed/locked down by your system administrator.
Installation on Windows Server 2008 or Windows Vista
- Review the information on the Windows Management Framework Core update
- Download the update package (“Windows6.0-KB968930-*.msu”) that is appropriate for your computer’s processor architecture
- Double-click on the “Windows6.0-KB968930-*.msu” file (that you just downloaded) to install it
Installation on Windows Server 2003
-
Verify that version 2.0 of the .NET Framework is installed:
-
Open the Windows® Run dialog box
- Press the
+
keys
- Press the
-
Type Cmd.exe into the Open text box and press the
key
-
At the command prompt, type the following command line and press the
key:dir %SYSTEMROOT%\Microsoft.NET\Framework\ /AD /B
-
The .NET Framework pre-requisite is satisfied if the dir output of the command includes a substring of “v2.0.50727″. Otherwise, download and install version 2.0 or later of the .NET Framework
- You could (and probably should) install the latest version (each release of the .NET Framework includes each of the ones that precede it)
- Be sure to check for and apply Windows updates afterward; there are Service Packs and patches for each version of the .NET Framework!
-
Open the Windows® Run dialog box
- Review the information on the Windows Management Framework Core update
- Download the installation program (“WindowsServer2003-KB968930-*-ENG.exe”) that is appropriate for your computer’s processor architecture
- Double-click on the “WindowsServer2003-KB968930-*-ENG.exe” file (that you just downloaded) to install it
Installation on Windows XP
-
Verify that version 2.0 of the .NET Framework is installed:
-
Open the Windows® Run dialog box
- Press the
+
keys
- Press the
-
Type Cmd.exe into the Open text box and press the
key
-
At the command prompt, type the following command line and press the
key:dir %SYSTEMROOT%\Microsoft.NET\Framework\ /AD /B
-
The .NET Framework pre-requisite is satisfied if the dir output of the command includes a substring of “v2.0.50727″. Otherwise, download and install version 2.0 or later of the .NET Framework
- You could (and probably should) install the latest version—each release of the .NET Framework includes each of the ones that precede it
- Be sure to check for and apply Windows updates afterward; there are Service Packs and patches for each version of the .NET Framework!
-
Open the Windows® Run dialog box
- Review the information on the Windows Management Framework Core update
- Download the installation program (“WindowsXP-KB968930-x86-ENG.exe”)
- Double-click on the “WindowsXP-KB968930-x86-ENG.exe” file (that you just downloaded) to install it
Installation on Windows 2000
PowerShell cannot be installed on Windows 2000… it’s time to upgrade!