Install PowerShell 2.0 and the WebAdministration snapin
The following procedures outline the installation of PowerShell and the required snapins.
Download and Install PowerShell 2.0 on Windows Server 2008
The following steps are not necessary for Windows Server 2008 R2 and Windows Server 2012.
Download PowerShell 2.0
- Review the information on the web page, and then click the link for the download of the Windows Management Framework Core for your platform in the Download Information section.
On the Update page, click Download.
When the download is complete, click Finish.
Install PowerShell 2.0 on Windows Server 2008 and 2008 R2
Installation of PowerShell 2.0 can typically be done from the Server Manager as shown below. For installation instructions, visit www.microsoft.com
Install the WebAdministration Snapins.
For Managed Nodes with IIS 7.0, download and install the PowerShell WebAdministration snapins found at the following link: http://www.iis.net/learn/manage/powershell/installing-the-iis-powershell-snap-in.
The IIS PowerShell Snap-in requires the following prerequisites
- Windows Server 2008 or higher
- Microsoft PowerShell 2.0
- IIS 7.0
Install the IIS PowerShell snap-in
- The IIS PowerShell Snap-in is available as x86 and x64 version. Download the 32-Bit version or 64-Bit version.
- Run the MSI file to install the IIS PowerShell Snap-in.
Use the PowerShell snap-in
PowerShell snap-ins like the IIS PowerShell Snap-in have to be registered with PowerShell. There are two ways to do this:
- Automatic Registration by using the IIS PowerShell Management Console
The IIS PowerShell snap-in setup creates a new program menu shortcut. By starting this shortcut, the IIS PowerShell snap-in is registered automatically. Navigate to Start > All Programs > IIS 7.0 Extensions > IIS PowerShell Management Console. The prompt of the new PowerShell command window is set to "IIS:\" - the root of the IIS snap-in namespace.
- Manual Registration
If you want to use the IIS PowerShell snap-in from an existing PowerShell command window, you have to register the IIS snap-in manually. You can do this by simply executing the I
ISConsole.PSC1file located in the
PS C:\> & "$env:programfiles\IIS\PowerShellSnapin\iisConsole.psc1"