Running on Windows 2019 domain controller:
- Import latest ADMX(L) files into central store
- Create GPO with custom settings
- Use GPMC to backup GPO into specific folder with manifest.xml
- Copy GPO-Backup to new Domain
- Using Powershell import-GPO succeeds but computer configuration (and user) settings are not imported
These are the commands (the OU is set elsewhere and not the issue):
New-GPO -Name "Windows-2022-Security_Baseline_Enhanced" | New-GPLink -Target $W22DN import-gpo -BackupGpoName Windows-2022-Security_Baseline_Enhanced -TargetName Windows-2022-Security_Baseline_Enhanced -path "$ScriptPath\GPO-Backup"
The commands work without an error but the settings are missing. If I use GPMC to import the same GPO backup all the settings are there.. I've checked the names and path and they're correct.