If you need to make a copy of a group policy, using the Group Policy Management Console can be a slow process. Using PowerShell is a much faster process.
All you need is the name of the source GPO copied to the clipboard.
1 |
Copy-GPO -SourceName "Edge Browser Settings - Test" -TargetName "Edge Browser Settings - Prod" |
You can also copy by using the GUID of the source and/or destination GPO. In addition, you can copy GPOs between domains.
1 |
copy-gpo -SourceName "Edge Browser Settings - Test" -SourceDomain "corp.viamonstra.com" -TargetName "Edge Browser Settings - Prod" -TargetDomain "lab.viamonstra.com" |
I don’t have an image of copying between domains because my lab only contains a single domain.