PowerShell Script to import Group Policy settings from production, test or development to another environment.
Your OU design should use a structure similar to this:
domain.local
|-- DEV
|-------- Users
|-------- Workstations
|----------- Laptops
|----------- Desktops
|-- PRD
|-------- Users
|-------- Workstations
|----------- Laptops
|----------- Desktops
|-- TST
|-------- Users
|-------- Workstations
|----------- Laptops
|----------- Desktops
Each Group Policy Object MUST start with the three character prefix for the name of the environment.
"PRD"
"TST"
"DEV"
For example:
The Production Workstations GPO is named "PRD Workstations".
The Test Workstations GPO is named "TST Workstations".
See examples by using PowerShell help, type: "Get-Help .\Import-GPtoEnvironment.ps1 -examples".