API Reference
Command
Get-ADXGpoFiles
Lists files in SYSVOL and/or NETLOGON and provides best-effort suggested actions.
Examples
Example 1
Get-ADXGpoFiles -Domain contoso.com -Type Sysvol
Example 2
Get-ADXGpoFiles -Type All,Netlogon -HashAlgorithm SHA256
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-ADXGpoFiles [-ComputerName <string>] [-Domain <string>] [-Forest <string>] [-HashAlgorithm <MD5|SHA1|SHA256|SHA384|SHA512>] [-MaxRowsPerDomain <int>] [-ScanCapPerRoot <int>] [-Type <All|Sysvol|Netlogon>] [<CommonParameters>]#Parameters
- ComputerName string
- Optional server/DC name to use for UNC paths (when omitted, uses the domain name).
- Domain string
- Optional domain filter to limit enumeration to one domain.
- Forest string
- Forest DNS name to enumerate. When omitted, uses the current forest.
- HashAlgorithm FileHashAlgorithm
- Optional checksum algorithm. Possible values: None, MD5, SHA1, SHA256, SHA384, SHA512
- Possible values:
MD5,SHA1,SHA256,SHA384,SHA512 - MaxRowsPerDomain int
- Maximum number of rows to emit per domain.
- ScanCapPerRoot int
- Maximum number of filesystem entries (directories + files) to scan per root.
- Type ScanType[]
- Scan scope. Default is All (SYSVOL root). Possible values: All, Sysvol, Netlogon
- Possible values:
All,Sysvol,Netlogon
Outputs
ADPlayground.Gpo.GpoFileRow