Using Powershell ServerManager module on Windows 2016 Server

Viewed 640

I have a module that runs on a Windows 2016 server that requires the ServerManager module. However, ServerManager is not available. There are many examples of installing this for Windows 10 using the Remote Server Admin package but that's only for Windows 10. Hammer Software has a good article on adding features and roles in 2016 but it doesn't say specifically which role will add the ServerManager module to the global environment. There are a gajillion roles and features and I added a few but can't seem to get the ServerManager module into my global environment.

I've read older things (such as this SOF question) that suggest ServerManager is 32 bit and won't autoload for module dependencies. Microsoft still documents it for Server 2012 but doesn't say specifically how to install and use it on Server 2016.

Now I'm totally confused. My module requires ServerManager but how do I get that installed/loaded? If I import the module manually it will work, i.e.:

PS F:\> import-module C:\Windows\sysnative\WindowsPowerShell\v1.0\Modules\ServerManager\ServerManager.psd1

But I need this to load automatically based on my module RequiredModules directive.

1 Answers

To use the Server Manager module, you need to install/enable that RSAT feature. The Server Manager and its PS module are part of that collection.

Related