Windows Server 2008 r2 and Powershell snapin [Answered]RSS

6 replies

Last post Nov 04, 2009 05:09 PM by realzafu

  • 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

  • Re: Windows Server 2008 r2 and Powershell snapin

    Oct 09, 2009 05:56 PM|ServerIntellect_BJ|LINK

  • 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

  • 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!

  • 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!

  • 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

  • Re: Windows Server 2008 r2 and Powershell snapin

    Nov 04, 2009 05:09 PM|realzafu|LINK

    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