Group Policy Cmdlets in Windows PowerShell
This topic contains the brief descriptions of the Windows PowerShell® cmdlets that are for use in administering Group Policy in Windows Server® 2012 and Windows® 8 with Remote Server Administration Tools (RSAT) installed. (RSAT includes the GPMC and the Group Policy cmdlets.)
Each cmdlet in the table is linked to additional information about that cmdlet.
Importante
The Group Policy cmdlets can only be run on a computer that has the Group Policy Management Console (GPMC) installed.
Group Policy Cmdlets (in verb order)
Name | Description |
---|---|
Backs up one GPO or all the GPOs in a domain. |
|
Copies a GPO. |
|
Retrieves Group Policy inheritance information for a specified domain or OU. |
|
Gets one GPO or all the GPOs in a domain. |
|
Generates a report in either XML or HTML format for a specified GPO or for all GPOs in a domain. |
|
Gets the permission level for one or more security principals on a specified GPO. |
|
Retrieves one or more registry preference items under either Computer Configuration or User Configuration in a GPO. |
|
Retrieves one or more registry-based policy settings under either Computer Configuration or User Configuration in a GPO. |
|
Outputs the Resultant Set of Policy (RSoP) information to a file, for a user, a computer, or both. |
|
Gets one Starter GPO or all Starter GPOs in a domain. |
|
Imports the Group Policy settings from a backed-up GPO into a specified GPO. |
|
Updates Group Policy on a local computer or remote computer. |
|
Links a GPO to a site, domain, or OU. |
|
Creates a new GPO. |
|
Creates a new Starter GPO. |
|
Removes a GPO link from a site, domain, or OU. |
|
Deletes a GPO. |
|
Removes one or more registry preference items from either Computer Configuration or User Configuration in a GPO. |
|
Removes one or more registry-based policy settings from either Computer Configuration or User Configuration in a GPO. |
|
Assigns a new display name to a GPO. |
|
Restores one GPO or all GPOs in a domain from one or more GPO backup files. |
|
Blocks or unblocks inheritance for a specified domain or OU. |
|
Sets the properties of the specified GPO link. |
|
Grants a level of permissions to a security principal for one GPO or for all the GPOs in a domain. |
|
Configures a registry preference item under either Computer Configuration or User Configuration in a GPO. |
|
Configures one or more registry-based policy settings under either Computer Configuration or User Configuration in a GPO. |
Sugerencia
You can import the cmdlets manually by running the following commands from Windows PowerShell:
- Import-Module ServerManager
- Add-WindowsFeature GPMC
- Get-Command -Module GroupPolicy
See Also
Other Resources
Commands