TestimoX

API Reference

Command

Get-ADXGpoFileInventory

Namespace ADPlayground.PowerShell
Outputs
ADPlayground.Gpo.GpoSysvolFileInventoryRow

Builds a per-GPO SYSVOL file inventory (counts, size, top extensions).

Examples

Authored help example

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 optionalposition: namedpipeline: false
Optional domain DNS name to limit results.
Forest string optionalposition: namedpipeline: false
Forest DNS name. When omitted, the current forest is used.
GpoGuid Guid[] optionalposition: namedpipeline: false
Optional GPO GUID filters.
GpoName string[] optionalposition: namedpipeline: false
Optional GPO display-name filters (supports * and ?).
MaxExtensions int optionalposition: namedpipeline: false
Maximum number of extensions to include in the summary.
ScanCapPerGpo int optionalposition: namedpipeline: false
Maximum number of filesystem entries (directories + files) to scan per GPO.

Outputs

ADPlayground.Gpo.GpoSysvolFileInventoryRow