Powershell – DNS Alterungs-/Aufräumeigenschaften Bericht Aging/Scavenging Report

Lesedauer < 1 Minute

DNS Scavenging Report

If (-not (Get-Module DNSServer -ErrorAction SilentlyContinue)) {
Import-Module DNSServer
}
#Report der Einstellungen
$DnsServer = ‘winserver.ndsedv.de’
$filename = “C:\Report\$($DNSServer)_AgScavConfig_$(get-date -Uformat “%Y%m%d-%H%M%S”).csv”
$zones = Get-DnsServerZone -computername $DnsServer
$zones | %{ Get-DnsServerZoneAging -ComputerName $DnsServer -name $_.ZoneName} | Export-Csv -NoTypeInformation $filename

dns-scavenging-report-ps1