Test-MtAdOuEmptyDetails
SYNOPSIS
Provides detailed information about empty Organizational Units in Active Directory.
SYNTAX
Test-MtAdOuEmptyDetails [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
This test lists all OUs that do not contain any user, group, or computer objects, along with their creation date and distinguished name. This detailed view helps administrators identify and evaluate empty OUs for potential deletion or repurposing. The information assists in directory cleanup efforts and organizational planning.
EXAMPLES
EXAMPLE 1
Test-MtAdOuEmptyDetails
Returns $true if OU data is accessible, $false otherwise. The test result includes a detailed list of all empty 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.