Managing zones on a Microsoft Windows 2012 DNS server using PowerShell scripts
Hello. There was a task to migrate DNS servers. It was necessary to migrate secondary and primary DNS servers. The following are examples of powershell scripts that allow you to copy all zones from the primary DNS server to secondary, copy all the zones from the primary server to the primary server, and delete all zones on the server.
Copying zones: