Hi Friends
I have below power shell script which is working fine if I have single zone But I have domain folder in single zone.
I am using below script to add A records and PTR records in zone but This script is not updating A and PTR records on domain folder under the Zone..
$CSVFile = Import-Csv "D:\DNS update script\DNSentries.csv"
$CSVFile | foreach {dnscmd $_.dnsserver /RecordAdd $_.Zone $_.name /CreatePTR $_.type $_.IP}
It giving me below error:
Command failed: DNS_ERROR_ZONE_DOES_NOT_EXIST 9601 0x2581