次の方法で共有


Server Manager Cmdlets in Windows PowerShell

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 that are available for installation and installed on a specified server.

Install-WindowsFeature

Installs one or more Windows Server on either the local or a specified remote server that is running Windows Server 2012. This cmdlet works similarly to the 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 in . Add-WindowsFeature can be used as an alias for Install-WindowsFeature.

Uninstall-WindowsFeature

Uninstalls specified Windows Server from a computer. By adding the Remove parameter, also deletes feature files, or payload, from a computer. This cmdlet works similarly to the 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 . Remove-WindowsFeature can be used as an alias for Uninstall-WindowsFeature.

注意

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.