Saturday, May 24, 2014

How to add the ServerManager Module to PowerGUI

If you are performing any type of administrative tasks on Windows Server 2012 or Windows Server 2012 R2, you will probably want to import the ServerManager module.

You can normally do this at the top of any PowerShell script, by simply typing:

Import-Module ServerManager

However, if you are working with PowerGUI, you can easily add ServerManager so that it is available for ALL of your PowerShell scripts!

  1. Start by selecting File-->PowerShell Libraries
  2. If you search for the ServerManager module, you will notice that it is not there already.
  3. You will have to click on Add Module...
  4. Type in ServerManager and click OK.
  5. You will then see that the ServerManager module will load into PowerGUI.
  6. You will now have Intellisense available for all ServerManager PowerShell tasks!

No comments:

Post a Comment