It is quite useful sometimes to learn to use command line in Windows, it is fast and work well just like what Linux command line does.
Have a look at the below lines of PowerShell commands to backup and restore GPO in Windows Server 2008 R2:
###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
Have a look at the below lines of PowerShell commands to backup and restore GPO in Windows Server 2008 R2:
###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
No comments:
Post a Comment