API Reference
Command
Get-ADXGpoPassword
Finds Group Policy Preference passwords (cpassword) in SYSVOL.
Examples
Example 1: Scan the production domain for Group Policy Preference passwords
Get-ADXGpoPassword -Domain 'contoso.com'
Example 2: Scan only legacy preference files in a restored GPO backup folder
Get-ADXGpoPassword -Path 'C:\Backups\GPO\Restored' -PathSearchPattern Groups.xml, Services.xml
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
Get-ADXGpoPassword [-Domain <string[]>] [-SearchPattern <string[]>] [<CommonParameters>]#Parameter set:
By Domain + SearchPatternParameters
- Domain string[]
- Domain DNS names to scan. When omitted, scans all forest domains.
- SearchPattern string[]
- Optional search patterns (e.g. '*' or specific XML names).
Outputs
ADPlayground.Gpo.GppPasswordSnapshot
Get-ADXGpoPassword -Path <string[]> [-PathSearchPattern <string[]>] [<CommonParameters>]#Parameter set:
By PathParameters
- Path string[]
- Paths (files or directories) to scan explicitly instead of SYSVOL discovery. When provided, outputs individual file hits (compat with legacy cmdlet).
- PathSearchPattern string[]
- Optional search patterns for -Path scans.
Outputs
ADPlayground.Gpo.GppPasswordSnapshot