Test-MtAdGpoChangedBefore2020Count
SYNOPSIS
Counts Group Policy Objects (GPOs) last changed before 2020.
SYNTAX
Test-MtAdGpoChangedBefore2020Count [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
This test counts GPOs whose ModificationTime is earlier than 2020-01-01. These GPOs can be considered "stale" and may contain outdated security configurations.
Stale or unmaintained GPOs can create security gaps if they no longer align with current security baselines and organizational requirements.
EXAMPLES
EXAMPLE 1
Test-MtAdGpoChangedBefore2020Count
Returns $true if the cached GPO data is accessible, $null if Active Directory data cannot be retrieved.
PARAMETERS
-ProgressAction
Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
System.Boolean
NOTES
RELATED LINKS
https://maester.dev/docs/commands/Test-MtAdGpoChangedBefore2020Count