IIS 7 and Above
Windows Server 2008 r2 and Powershell snapin
Last post Nov 04, 2009 05:09 PM by realzafu
Oct 09, 2009 06:12 AM|steve schofield|LINK
I'm running a 64 bit version of windows server 2008 r2. I don't see the powershell provider as a feature to install. Am I missing something obvious?
Windows Server MVP - IIS
Log archival solution
Install, Configure, Forget
Oct 09, 2009 05:56 PM|ServerIntellect_BJ|LINK
PowerShell 2.0 should be available by default on 2008 R2.
Try, Start > All Programs > Accessories > Windows Powershell
Hope this helps.
Oct 09, 2009 06:47 PM|steve schofield|LINK
I should have been more clear. The IIS powershell provider. I wouldn't doubt I'm missing the obvious. :P
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!
Oct 10, 2009 02:35 AM|WindowsSamurai|LINK
I couldn't figure out how to install the module either. Once I followed the above instructions it just showed up in PowerShell... turns out it was installed all along!
It seems that because Microsoft includes PowerShell in the Windows 2008 R2 installation, they also include the PowerShell Provider with the IIS Role installation.
Thanks guys, this helped a lot!
Oct 10, 2009 03:35 PM|steve schofield|LINK
I was evaluating a 3rd party product for powershell development, a known function that worked in PS 1.0 w/ IIS provider errored out within their tool. I didn't try launching the regular powershell UI. I see what you mean by PS loading the providers, one
of them is the web administration. I thought there was an option during the beta days of allowing to install the PS provider. That was gone and it's not listed in the features.
Hope this helps someone!
Nov 04, 2009 05:09 PM|realzafu|LINK