IIS 7 and Above
Windows Server 2008 r2 and Powershell snapin
Re: Windows Server 2008 r2 and Powershell snapin
Oct 10, 2009 12:13 AM|ServerIntellect_BJ|LINK
In order to use the IIS Provider you want to make sure to use the "-ImportSystemModules" arguement when starting PowerShell.
This is included when running "Windows PowerShell Modules" from Admin tools. or by running the following command at CMD.
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -NoExit -ImportSystemModules
You can then verify that the Provider is available by using the 'get-psprovider' command in PowerShell.
The provider will be named "WebAdministration" and the Drives is (IIS).
Hope this helps!