API Reference
Command
Get-ADXGpoFileInventory
Builds a per-GPO SYSVOL file inventory (counts, size, top extensions).
Examples
Example 1: Build a file inventory for all GPOs in the current forest
Get-ADXGpoFileInventory
Example 2: Review larger SYSVOL inventories in the production domain
Get-ADXGpoFileInventory -Domain 'contoso.com' -ScanCapPerGpo 100000 | Sort-Object TotalSizeBytes -Descending | Select-Object -First 20
Example 3: Focus on baseline GPOs and collect a richer extension breakdown
Get-ADXGpoFileInventory -GpoName '*Baseline*' -MaxExtensions 20
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-ADXGpoFileInventory [-Domain <string>] [-Forest <string>] [-GpoGuid <Guid[]>] [-GpoName <string[]>] [-MaxExtensions <int>] [-ScanCapPerGpo <int>] [<CommonParameters>]#Parameters
- Domain string
- Optional domain DNS name to limit results.
- Forest string
- Forest DNS name. When omitted, the current forest is used.
- GpoGuid Guid[]
- Optional GPO GUID filters.
- GpoName string[]
- Optional GPO display-name filters (supports * and ?).
- MaxExtensions int
- Maximum number of extensions to include in the summary.
- ScanCapPerGpo int
- Maximum number of filesystem entries (directories + files) to scan per GPO.
Outputs
ADPlayground.Gpo.GpoSysvolFileInventoryRow