$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-12-09 07:23:43