$dnsServerName="dsnsvr.test.com"
$containerName="test.com"
$dns = [WMIClass]"ROOT\MicrosoftDNS:MicrosoftDNS_ResourceRecord"
Get-Content C:\dnsListFile.txt | Foreach-Object {$dns.CreateInstanceFromTextRepresentation($dnsServerName, $containerName, $_)}本文出自 “汜水流年_” 博客,请务必保留此出处http://timefiles.blog.51cto.com/8475652/1920458
原文:http://timefiles.blog.51cto.com/8475652/1920458