CmdID / PowerShell / Cmdlets / Backup
Backup-GPO
Backs up one GPO or all the GPOs in a domain. Windows Server PowerShell reference
From the Windows Server PowerShell reference 9 parameters Its page in the reference
Parameters
-AllSpecifies that all the GPOs in the domain are backed up.-CommentSpecifies a comment for the backed-up GPO.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-Domain, -DomainNameSpecifies the domain for this cmdlet.-Guid, -IdSpecifies the GPO to backup by its globally unique identifier (GUID).-Name, -DisplayNameSpecifies the GPO to backup by its display name.-Path, -BackupLocationSpecifies the path to the backup directory; for instance, C:\Backups or \MyServer\Backups.-Server, -DCSpecifies the name of the domain controller that this cmdlet contacts to complete the operation.-WhatIf, -wiShows what would happen if the cmdlet runs.