« Previous Next »

Answered Thread: Windows Server 2008 r2 and Powershell snapin

Last post 11-04-2009 5:09 PM by realzafu. 6 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 10-09-2009, 6:12 AM

    Windows Server 2008 r2 and Powershell snapin

    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://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 10-09-2009, 5:56 PM In reply to

    Re: Windows Server 2008 r2 and Powershell snapin

    Bobby Johnson
    Technical Support Representative
    www.serverintellect.com

    Managed Servers, 24x7 U.S. Support, Web Hosting Solutions.
  • 10-09-2009, 6:47 PM In reply to

    Re: Windows Server 2008 r2 and Powershell snapin

    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://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 10-10-2009, 12:13 AM In reply to

    Answered Re: Windows Server 2008 r2 and Powershell snapin

    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!

    Bobby Johnson
    Technical Support Representative
    www.serverintellect.com

    Managed Servers, 24x7 U.S. Support, Web Hosting Solutions.
  • 10-10-2009, 2:35 AM In reply to

    Re: Windows Server 2008 r2 and Powershell snapin

    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!

  • 10-10-2009, 3:35 PM In reply to

    Answered Re: Windows Server 2008 r2 and Powershell snapin

    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://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 11-04-2009, 5:09 PM In reply to

    • realzafu
    • Not Ranked
    • Joined on 02-09-2005, 8:37 AM
    • Posts 1

    Re: Windows Server 2008 r2 and Powershell snapin

    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
Page 1 of 1 (7 items)
Microsoft Communities