Set-DnsZoneTransfer cmdlet

Jul 6, 2011 at 10:03 AM

Hi.

I need change massive amount of dns zones on may DNS server - and first i think - powershell is ideal solution for this. Nex i discovered that there isn native DNS support in PS and then landed on this page :)

Now, after some struggling with  " and ' -s in Zone identity i get some progress to only see that :

"Set-DnsZoneTransfer : Only valid for Primary Zones"  ???

ie if i execute  PS> Set-DnsZoneTransfer -Identity '\\MYSEVRER\root\MicrosoftDNS:MicrosoftDNS_Zone.ContainerName="zone1.tld",DnsServerName="myserver.fqdn",Name="zone1.tld"' -Zonetransfer Any

i can put insteda Any List and define list of secondary servers, or whatever but still get "Only valid for primary zone".

It is limitation of WMI, or implemetation ? I can set it via DNS GUI and it works , but cant script it ....

Thanks.

Coordinator
Aug 12, 2011 at 9:38 AM

An oversight on my part, this will be fixed in the next release.

Cheers,

Chris