Skip to main content
Version: 2.1.0

Test-MtAdUserInContainerCount

SYNOPSIS

Counts users located in container objects instead of OUs.

SYNTAX

Test-MtAdUserInContainerCount [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

This test identifies user objects whose distinguished name indicates they are stored beneath a container path (CN=) rather than an organizational unit (OU=). Users in default or custom containers can be harder to manage consistently because containers do not support the same delegation and Group Policy design patterns as OUs.

EXAMPLES

EXAMPLE 1

Test-MtAdUserInContainerCount

Returns $true if user data is accessible, $false otherwise. The test result includes the count of users located in container objects.

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

https://maester.dev/docs/commands/Test-MtAdUserInContainerCount