Skip to main content
Version: 2.1.0

Test-MtAdAllowedDnsSuffixesCount

SYNOPSIS

Retrieves the count of allowed DNS suffixes configured for the domain.

SYNTAX

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

DESCRIPTION

This test retrieves the count of allowed DNS suffixes configured in the Active Directory domain. Allowed DNS suffixes define which DNS domain suffixes can be used when joining computers to the domain. This configuration helps maintain DNS namespace consistency and prevents unauthorized domain joins from external or untrusted DNS namespaces.

EXAMPLES

EXAMPLE 1

Test-MtAdAllowedDnsSuffixesCount

Returns $true if allowed DNS suffix data is accessible. The test result includes the count of configured allowed DNS suffixes.

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-MtAdAllowedDnsSuffixesCount