TestimoX

API Reference

Command

Backup-ADXGpo

Namespace ADPlayground.PowerShell
Outputs
System.IO.FileInfo

Creates a COM‑free backup (metadata + SYSVOL content + manifest) for a GPO.

Examples

Authored help example

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 requiredposition: namedpipeline: false
DNS domain name where the GPO resides.
Id Guid requiredposition: namedpipeline: false
GPO GUID (groupPolicyContainer objectGuid).
Path string requiredposition: namedpipeline: false
Destination folder to write the backup.
Comment string optionalposition: namedpipeline: false
Optional comment recorded in the backup manifest.
IncludeSysvolHashes SwitchParameter optionalposition: namedpipeline: false
When set, computes SHA256 hashes for SYSVOL files and stores them in the manifest.
NoLinks SwitchParameter optionalposition: namedpipeline: false
When set, disables including discovered GPO links in the backup manifest.
NoSecurityDescriptor SwitchParameter optionalposition: namedpipeline: false
When set, disables including the security descriptor (owner + DACL) in the backup manifest.
NoSysvol SwitchParameter optionalposition: namedpipeline: false
When set, disables including SYSVOL content in the backup archive.

Outputs

System.IO.FileInfo