Skip to main content
Version: 2.3.1-preview

Test-MtAdComputerDnsHostNameCount

SYNOPSIS​

Counts computers with DNS host name configured.

SYNTAX​

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

DESCRIPTION​

DNS host names (dNSHostName attribute) are essential for proper Kerberos authentication and service principal name (SPN) registration. This test counts computers that have a DNS host name configured in Active Directory.

Security Value:

  • DNS host names are required for proper Kerberos authentication
  • Missing DNS host names can cause authentication failures
  • Required for proper SPN registration
  • Important for service discovery and name resolution

EXAMPLES​

EXAMPLE 1​

Test-MtAdComputerDnsHostNameCount

Returns $true if computer data is accessible.

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