$dnsServerName="dsnsvr.test.com" $containerName="test.com" $dns = [WMIClass]"ROOT\MicrosoftDNS:MicrosoftDNS_ResourceRecord" Get-Content C:\dnsListFile.txt | Foreach-Object {$dns.CreateInstanceFromTextRepresentation($dnsServerName, $containerName, $_)}
时间: 2024-10-03 13:46:28