Test-MtAdOuStaleCount
SYNOPSIS
Counts the number of Organizational Units that have not been modified since before 2020.
SYNTAX
Test-MtAdOuStaleCount [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
This test identifies OUs that have not been modified since before 2020, which may indicate stale or unused organizational units. Stale OUs can accumulate over time and may represent outdated organizational structures or abandoned projects. Regular review and cleanup of stale OUs helps maintain directory hygiene and reduces confusion.
EXAMPLES
EXAMPLE 1
Test-MtAdOuStaleCount
Returns $true if OU data is accessible, $false otherwise. The test result includes the count of stale OUs.
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.