2015-09-04 248 views

回答

1

我找到了解決方案。

$myDNSServer = "[email protected]" 
$DNSZones = Get-DnsServerZone -ComputerName (Get-ADDomainController -Discover -Service PrimaryDC) 
foreach($aZone in $DNSZones) 
{ 
    Remove-DnsServerResourceRecord -ZoneName $aZone.ZoneName -RRType Ns -RecordData $myDNSServer -ComputerName $PDCE -Force 
} 

該腳本將刪除您從ServerResourceRecords搜索的所有記錄。