TestimoX

API Reference

Command

Get-ADXDnsScavenging

Namespace ADPlayground.PowerShell
Outputs
ADPlayground.Dns.DnsZoneScavengingInfo

Retrieves DNS zone scavenging settings and detects mismatches with server defaults.

Examples

Authored help example

Example 1: Review zone scavenging posture on the primary DNS server


Get-ADXDnsScavenging -DnsServer 'dns-01.contoso.com' | Format-Table ZoneName, ScavengingEnabled, ServerDefaultMismatch -AutoSize
        

Example 2: Export scavenging mismatches for a disaster-recovery DNS server


Get-ADXDnsScavenging -DnsServer 'dns-dr-01.contoso.com' | Where-Object ServerDefaultMismatch | Export-Csv '.\dns-scavenging-mismatches.csv' -NoTypeInformation
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Get-ADXDnsScavenging -DnsServer <string> [<CommonParameters>]
#

Parameters

DnsServer string requiredposition: 0pipeline: false
DNS server name to query.

Outputs

ADPlayground.Dns.DnsZoneScavengingInfo