Test-MtAdComputerOUCount
SYNOPSIS
Counts the distinct organizational units (OUs) containing computer objects.
SYNTAX
Test-MtAdComputerOUCount [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
This test identifies the number of unique organizational units that contain enabled computer objects. This provides insight into the organizational structure and distribution of computers across the directory. A well-organized AD structure typically has computers distributed across multiple OUs based on location, department, or function.
EXAMPLES
EXAMPLE 1
Test-MtAdComputerOUCount
Returns $true if computer object data is accessible, $false otherwise. The test result includes the count of distinct OUs with computers.
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.