Tutorial – Installing PowerShell

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:

  1. Confirm that you have sufficient security privileges for installing software on Windows
  2. Verify that the pre-requisite—version 2.0 of the .NET Framework—is installed (and patched)
  3. 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

  1. Review the information on the Windows Management Framework Core update
  2. Download the update package (“Windows6.0-KB968930-*.msu”) that is appropriate for your computer’s processor architecture
  3. Double-click on the “Windows6.0-KB968930-*.msu” file (that you just downloaded) to install it

Installation on Windows Server 2003

  1. Verify that version 2.0 of the .NET Framework is installed:

    1. Open the Windows® Run dialog box

      1. Press the Windows key + R key keys
    2. Type Cmd.exe into the Open text box and press the Enter key key
    3. At the command prompt, type the following command line and press the Enter key key:

      dir %SYSTEMROOT%\Microsoft.NET\Framework\ /AD /B

    4. 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!
  2. Review the information on the Windows Management Framework Core update
  3. Download the installation program (“WindowsServer2003-KB968930-*-ENG.exe”) that is appropriate for your computer’s processor architecture
  4. Double-click on the “WindowsServer2003-KB968930-*-ENG.exe” file (that you just downloaded) to install it

Installation on Windows XP

  1. Verify that version 2.0 of the .NET Framework is installed:

    1. Open the Windows® Run dialog box

      1. Press the Windows key + R key keys
    2. Type Cmd.exe into the Open text box and press the Enter key key
    3. At the command prompt, type the following command line and press the Enter key key:

      dir %SYSTEMROOT%\Microsoft.NET\Framework\ /AD /B

    4. 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!
  2. Review the information on the Windows Management Framework Core update
  3. Download the installation program (“WindowsXP-KB968930-x86-ENG.exe”)
  4. 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 2000it’s time to upgrade!

About these ads

About tnbarkhouse

I'm a SQL Server database administrator with a few tools to share.
This entry was posted in PowerShell and tagged , , , , , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s