Windows AD DNS Export

From KlavoWiki
Jump to navigationJump to search

To export an Activie Directory integrated zone.

 Export-DnsServerZone -Name "domainname.com" -FileName "domainname.com.txt" 

or

 dnscmd /zoneexport domainname.com domainname.com.txt 

To ensure you don't receive a permission denied error change folders to C:\windows\system32\dns. If you are located in any other folder when the command is executed the exported file is save to the folder:

 c:\windows\system32\dns