Comment sauvegarder toutes les GPOs (stratégies de groupe) dans un domaine
Dans l’article TechNet
‘Backing-up GPO’ vous trouverez la
syntaxe :
Backup-GPO [-Name] <string> -Path <string> [-Comment <string>] [-Domain <string>] [-Server <string>] [<CommonParameters>]
Backup-GPO -All -Path <string> [-Comment <string>] [-Domain <string>] [-Server <string>] [<CommonParameters>]
Backup-GPO -Guid <Guid> -Path <string> [-Comment <string>] [-Domain <string>] [-Server <string>] [<CommonParameters>]
Et des exemples utiles:
Sauvegarder la GPO ‘TestGPO’ vers C:\GpoBackups:
C:\PS>
Backup-Gpo -Name TestGPO -Path C:\GpoBackups -Comment "Weekly Backup"
DisplayName : TestGPO
GpoId : 35c12ab3-956c-45d5-973b-46b17d225f47
Id : 2b509d4e-40f5-4337-82f7-458584555d0c
BackupDirectory : C:\GpoBackups
CreationTime : 2/25/2009 8:48:19 PM
DomainName : contoso.com
Comment : Weekly Backup
Si vous aimez développer des scripts/applications, voir l’article : http://msdn.microsoft.com/en-us/library/ee862406(VS.85).aspx . Sinon, voir l’article du MVP Derek Melber : http://www.windowsecurity.com/articles/Backing-up-Restoring-GPOs-using-GPMC.html