Infos

Sie befinden sich aktuell in den Techblog - Tim Wanierke Blog-Archiven für den folgenden Tag 16.6.2011.

Calendar
Juni 2011
M D M D F S S
« Mai   Aug »
 12345
6789101112
13141516171819
20212223242526
27282930  

Archive für 16.6.2011

Export and import GPO from one domain to another

Here are the links to the scripts that can export and import GPO’s.

Windows 2003 with GPMC installed:
http://msdn.microsoft.com/en-us/library/aa814151(v=vs.85).aspx

Export:
BackupGPO.wsf TestPolicyGPO C:\GpoBackups /Comment: “Weekly backup”  /Domain:example.microsoft.com

Import:
ImportGPO.wsf C:\GpoBackups {73624CC9-E8F2-4F05-88D2-193FAE8773CE} NewGPO /CreateIfNeeded

Windows 2008 R2 Powershell:
http://technet.microsoft.com/en-us/library/ee461027.aspx

Export:
Backup-Gpo -Name TestGPO -Path C:\GpoBackups -Comment “Weekly Backup”

Import:
import-gpo -BackupGpoName TestGPO -TargetName TestGPO -path C:\GpoBackups

|