Group Policy Management - Console Command [extra Quality]

You can execute gpmc.msc from several locations within Windows:

for a specific computer/user:

If you are looking for the to manage group policy for a domain, memorize this: group policy management console command

# Using Get-GPResultantSetOfPolicy (RSOP) Get-GPResultantSetOfPolicy -ReportType Html -Path "GPReport.html" You can execute gpmc

# Backup all GPOs to a folder Backup-GPO -All -Path "C:\GPOBackup" -Comment "Backup before changes" | | Link a GPO | New-GPLink -Name

These commands require running as Administrator and appropriate Group Policy permissions.

| Action | Command | Description | | :--- | :--- | :--- | | | Get-GPO -All | Lists every GPO in the domain. | | Create a new GPO | New-GPO -Name "MyNewPolicy" | Creates a blank GPO. | | Link a GPO | New-GPLink -Name "MyNewPolicy" -Target "OU=Sales,DC=domain,DC=com" | Links a GPO to a specific OU. | | Remove a Link | Remove-GPLink -Name "MyNewPolicy" -Target "OU=Sales,DC=domain,DC=com" | Unlinks a GPO from an OU. | | Backup All GPOs | Backup-GPO -All -Path "C:\GPOBackups" | Backs up all policies to a folder. | | Restore GPO | Restore-GPO -Name "MyNewPolicy" -Path "C:\GPOBackups" | Restores a specific policy from backup. |