IIS snapin for Windows Server

What do I need to install to have IIS snap-in / drive support in powershell for the following OS's?

Win2008R1

Win2008R2

Win2012

scott

August 25th, 2015 2:50pm

http://www.iis.net/downloads/microsoft/powershell

Once installed, you do Add-PSSnapin WebAdminist

Free Windows Admin Tool Kit Click here and download it now
August 25th, 2015 3:05pm

Web Administration is built into WS2008 and later.  Just use Add-Feature to install.

DO NOT install aftermarket modules.

https://technet.microsoft.com/en-us/library/Ee790599.aspx

if iis administration is installed then just use:

Import-Module WebAdministration

If PS 3 or later the modules will load automatically when an CmdLet is referenced.

August 26th, 2015 12:17am

Web Administration is built into WS2008R2 and later.  Just use Add-Feature to install.

DO NOT install aftermarket modules.

https://technet.microsoft.com/en-us/library/Ee790599.aspx

if iis administration is installed then just use:

Import-Module WebAdministration

If PS 3 or later the modules will load automatically when an CmdLet is referenced.

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 4:07am

Web Administration is not built into WS 2008 Standard (IIS 7.0), it may be built in WS 2008 R2 (IIS 7.5)
August 26th, 2015 8:30am

the post specifically states R2 and 2012. It does not list WS2008.

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 10:25am

the post specifically states R2 and 2012. It does not list WS2008.

August 26th, 2015 10:32am

I am assuming that is a typo.

You can use the CmdLets on R2 to access a standard 2008 IIS.

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 10:38am

Yes but we both shouldn't assume anything, and since we haven't heard back from the OP, that is all we can do.

Yes you are correct, Win 2008 R2 and greater, you just need to enable the feature and then either Import-Module WebAdministration for Powershell 2.0 or just use the cmdlets with Powershell 3.0 or above and it will automatically import the module.

If it is also required to be on Win 2008 Standard, then the OP must install the add on, and then do a Add-PSSnapin WebAdministration in order to access the cmdlets.

August 26th, 2015 10:51am

Web Administration is built into WS2008R2 and later.  Just use Add-Feature to install.

DO NOT install aftermarket modules.

https://technet.microsoft.com/en-us/library/Ee790599.aspx

if iis administration is installed then just use:

Import-Module WebAdministration

If PS 3 or later the modules will load automatically when an CmdLet is referenced.

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 11:02am

the post specifically states R2 and 2012. It does not list WS2008.

August 26th, 2015 11:04am

To enable on R2 and above, make sure you select IIS Management Scripts and Tools when installing IIS
Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 11:22am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics