How to backup and restore GPO Win 2k8 r2 using PowerShell commands

​###GPO
Import-Module GroupPolicy
Backup-Gpo -Name TestGPO -Path C:\GpoBackups -Comment "Weekly Backup"
Backup-Gpo -GUID fa4a9473-6e2a-4b87-ab78-175e68d97bde -Domain contoso.com -Server DC1 -Path \\Server1\GpoBackups
Backup-Gpo -All -Path \\Server1\GpoBackups

Restore-GPO -Name "TestGPO" -Path \\Server1\Backups
Restore-GPO -GUID fa4a9473-6e2a-4b87-ab78-175e68d97bde -Path \\Server1\Backups
Restore-GPO -All -Domain contoso.com -Path \\Server1\Backups

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s