Export (0) Print
Expand All

Server Manager Cmdlets in Windows PowerShell

Updated: October 7, 2013

Applies To: Windows Server 2012

Windows PowerShell® is a task-based command-line shell and scripting language designed especially for system administration. This reference content for the information technology (IT) professional provides help for running Windows PowerShell cmdlets to script and automate tasks.

To download the most current Windows PowerShell console help for this cmdlet module, run Update-Help -Module ServerManager in an elevated (Run as Administrator) Windows PowerShell session.

All cmdlets in this module require elevation.

Server Manager role and feature deployment

This reference provides cmdlet descriptions and syntax for all Server Manager role and feature deployment cmdlets, and for the cmdlets that control standard user access to data in Server Manager. It lists the cmdlets in alphabetical order, based on the verb at the beginning of the cmdlet.

 

Cmdlet Description

Enable-ServerManagerStandardUserRemoting

Provides one or more standard, non-Administrator users access to event, service, performance counter, and role and feature inventory data for a remote server that you are managing by using Server Manager.

Disable-ServerManagerStandardUserRemoting

Disables access for specified standard users to event, service, performance counter, and role and feature inventory data that is collected by Server Manager for a remote server. This cmdlet performs the opposite action, for specified users, of the Enable-ServerManagerStandardUserRemoting cmdlet.

Get-WindowsFeature

Gets information about Windows Server roles, role services, and features that are available for installation and installed on a specified server.

Install-WindowsFeature

Installs one or more Windows Server roles, role services, and features on either the local or a specified remote server that is running Windows Server 2012. This cmdlet works similarly to the Add Roles and Features Wizard in Server Manager, with an important exception: the cmdlet does not install management tools for roles, role services, and features by default. To install management tools such as snap-ins on a target server, you must add the IncludeManagementTools parameter to your command. This cmdlet replaces Add-WindowsFeature, the cmdlet that was used to install roles, role services, and features in Windows Server 2008 R2. Add-WindowsFeature can be used as an alias for Install-WindowsFeature.

Uninstall-WindowsFeature

Uninstalls specified Windows Server roles, role services, and features from a computer. By adding the Remove parameter, also deletes feature files, or payload, from a computer. This cmdlet works similarly to the Remove Roles and Features Wizard in Server Manager, with an important exception: by default, management tools are not uninstalled when you run the Uninstall-WindowsFeature cmdlet; you must add the IncludeManagementTools parameter to uninstall associated management tools. This cmdlet replaces Remove-WindowsFeature, the cmdlet that was used to uninstall roles, role services, and features in Windows Server 2008 R2. Remove-WindowsFeature can be used as an alias for Uninstall-WindowsFeature.

noteNote
To list all cmdlets that are available in this module, run Get-Command –Module ServerManager.

For more information about or for the syntax of any cmdlet, run Get-Help <cmdlet name>, where <cmdlet name> represents the name of the cmdlet about which you want more information. For more detailed information, run any of the following cmdlets, after running Update-Help.

  • Get-Help <cmdlet name> -Detailed

  • Get-Help <cmdlet name> -Examples

  • Get-Help <cmdlet name> -Full

More information

For more information about using the Server Manager deployment cmdlets, see Install or Uninstall Roles, Role Services, or Features. For more information about managing standard users, see Managing Standard User Access to Data in Server Manager.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft