9

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?

3 Answers 3

8

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

2
  • 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. Feb 21, 2022 at 16:06
  • @Appleoddity thanks for the comment. I updated the Answer Jul 21, 2023 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
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.

1
  • 2
    Thanks for the screenshot. This is actually in the 'IIS Management Scripts and Tools' feature, not in the 'IIS Management Console'. Apr 11, 2017 at 18:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .