API Reference
Command
Backup-ADXGpo
Creates a COM‑free backup (metadata + SYSVOL content + manifest) for a GPO.
Examples
Example 1
Backup-ADXGpo -Domain contoso.com -Id '{GUID}' -Path C:\\Backups\\GPOs
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Backup-ADXGpo -Domain <string> -Id <Guid> -Path <string> [-Comment <string>] [-IncludeSysvolHashes] [-NoLinks] [-NoSecurityDescriptor] [-NoSysvol] [<CommonParameters>]#Parameters
- Domain string
- DNS domain name where the GPO resides.
- Id Guid
- GPO GUID (groupPolicyContainer objectGuid).
- Path string
- Destination folder to write the backup.
- Comment string
- Optional comment recorded in the backup manifest.
- IncludeSysvolHashes SwitchParameter
- When set, computes SHA256 hashes for SYSVOL files and stores them in the manifest.
- NoLinks SwitchParameter
- When set, disables including discovered GPO links in the backup manifest.
- NoSecurityDescriptor SwitchParameter
- When set, disables including the security descriptor (owner + DACL) in the backup manifest.
- NoSysvol SwitchParameter
- When set, disables including SYSVOL content in the backup archive.
Outputs
System.IO.FileInfo