8

Windows Server 2016 comes with a shiny new module named IISAdministration. But when I try to load the module I get the error that 'no valid module file was found'. It is not on the powershell gallery and google does not find a download on the internet.

So where is that module hiding? How to I get it installed on my Windows Server 2016?

Mark Arnott
  • 992
  • 5
  • 10
  • 18

3 Answers3

5

--Update-- This is now available as a stand-alone Powershell Module in the PS Gallery.

https://www.powershellgallery.com/packages/IISAdministration/1.1.0.0

It turns out that the IISAdministration powershell module is a server feature.

With PowerShell you enable it with
Install-WindowsFeature web-scripting-tools

Or from the Server Manager GUI, under Server Roles, you select:
Web Server (IIS) -> Management Tools -> IIS Management Scripts and Tools

Mark Arnott
  • 992
  • 5
  • 10
  • 18
  • 1
    `web-mgmt-console` is not the feature that enables `IIS Management Scripts and Tools`. It is `web-scripting-tools`. i.e. `Install-WindowsFeature web-scripting-tools`. Followed by, `Import-Module WebAdministration`. – Appleoddity Feb 21 '22 at 16:06
  • @Appleoddity thanks for the comment. I updated the Answer – Mark Arnott Jul 21 '23 at 12:17
4

Here you find details to install IISAdministration in different environments

On windows/windows server we can install module using

Install-Module -Name IISAdministration
Usman Ali Maan
  • 232
  • 1
  • 7
2

You can install that feature using a windows PowerShell console with elevated privileges (running it as administrator).

You can't install it from internet since it's within the IIS role of windows server, so you would need to install IIS 1st and then you can import it whenever you needed too.

So the step by step would be * Server manager/Add Roles and Features/Next/Role-based or feature-based installation/SelectYourserver/next

IIS Picture

then next next next... and install.

Jose Ortega
  • 544
  • 2
  • 9
  • 2
    Thanks for the screenshot. This is actually in the 'IIS Management Scripts and Tools' feature, not in the 'IIS Management Console'. – Mark Arnott Apr 11 '17 at 18:35