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.
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.
I am new to powershell and had this same problem on getting iis snap-in loaded. once i installed IIS snap in i found i need to use special shortcut to start like this... C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -psconsolefile "C:\Program Files\IIS\PowerShellSnapin\IIsConsole.psc1"
-NoExit -command set-location IIS:\;clear-host IIsConsole.psc1 looks like: 1.0 or in PS Command window enter command Add-PSSnapIn WebAdministration Get-PSProvider #will show loaded providers
5619 Posts
Windows Server 2008 r2 and Powershell snapin
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?
Steve Schofield
Windows Server MVP - IIS
http://iislogs.com/steveschofield
http://www.IISLogs.com
Log archival solution
Install, Configure, Forget
5 Posts
Re: Windows Server 2008 r2 and Powershell snapin
Oct 09, 2009 05:56 PM|ServerIntellect_BJ|LINK
Hello,
PowerShell 2.0 should be available by default on 2008 R2.
http://blogs.msdn.com/powershell/archive/2009/07/23/windows-powershell-2-0-rtm.aspx
http://blogs.msdn.com/powershell/archive/2008/10/28/powershell-will-be-installed-by-default-on-windows-server-08-r2-ws08r2-and-windows-7-w7.aspx
Try, Start > All Programs > Accessories > Windows Powershell
Hope this helps.
5619 Posts
Re: Windows Server 2008 r2 and Powershell snapin
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
Steve Schofield
Windows Server MVP - IIS
http://iislogs.com/steveschofield
http://www.IISLogs.com
Log archival solution
Install, Configure, Forget
5 Posts
Re: Windows Server 2008 r2 and Powershell snapin
Oct 10, 2009 12:13 AM|ServerIntellect_BJ|LINK
Steve,
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!
1 Post
Re: Windows Server 2008 r2 and Powershell snapin
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!
5619 Posts
Re: Windows Server 2008 r2 and Powershell snapin
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!
Steve Schofield
Windows Server MVP - IIS
http://iislogs.com/steveschofield
http://www.IISLogs.com
Log archival solution
Install, Configure, Forget
2 Posts
Re: Windows Server 2008 r2 and Powershell snapin
Nov 04, 2009 05:09 PM|realzafu|LINK