1
2
3
4
|
$dnsServerName
=
"dsnsvr.test.com"
$containerName
=
"test.com"
$dns
=
[WMIClass]
"ROOT\MicrosoftDNS:MicrosoftDNS_ResourceRecord"
Get-Content
C:\dnsListFile.txt |
Foreach-Object
{
$dns
.CreateInstanceFromTextRepresentation(
$dnsServerName
,
$containerName
,
$_
)}
|
本文转自bard_zhang51CTO博客,原文链接: http://blog.51cto.com/timefiles/1920458,如需转载请自行联系原作者