You might see the following error depending on the PowerShell Execution Permissions. Make sure you always start PowerShell via the "Run as Administrator" menu item. This means that you have to run PowerShell command windows elevated.
You need Administrator privileges to manage IIS configuration. You can do this by simply executing the IISConsole.PSC1 file located in the "$env:programfiles\IIS\PowerShellProvider" directory: PS C:\> & "$env:programfiles\IIS\PowerShellSnapin\iisConsole.psc1"Ī Word About Security User Access Control If you want to use the IIS PowerShell Snap-in in an existing PowerShell command window you have to register the IIS snap-in manually. The prompt of the new PowerShell command window is set to "IIS:" - the root of the IIS Snap-in namespace. Click on the Start Menu - select "All Programs" - "IIS 7.0 Extensions" - "IIS PowerShell Management Console". By starting this shortcut the IIS PowerShell Snap-in will be registered automatically. The IIS PowerShell Snap-in setup will create a new Program Menu shortcut. There are two ways to do this: Automatic Registration by using the IIS PowerShell Management Console PowerShell snap-ins like the IIS PowerShell Snap-in have to be registered with PowerShell. Run the MSI file to install the IIS PowerShell Snap-in.Download the 32-Bit version or 64-Bit version. The IIS PowerShell Snap-in is available as x86 and 圆4 version.Windows Server 2008, Windows Server 2008 R2, Windows Vista Service Pack 1, or Windows 7.The IIS PowerShell Snap-in requires the following prerequisites:
In the following walkthrough you will learn how to install the IIS PowerShell Snap-in and how to start the IIS PowerShell Management Console.