none
DNS Server Backup RRS feed

  • Question

  • I want to start backing up my DNS server zones using PowerShell.  Looking around the web it seems that Griffon's, http://c-nergy.be/blog/?p=1810, solution is widely used and recommended.  I had also written this little script and after comparing the exported files from my script and Griffon's, I don't seem to find any difference between the results on both of them.  Can you tell me if I'm missing anything obvious?

    Here's my little script:

    $ZoneNames = Get-DnsServerZone |select zonename
    foreach ($Zone in $ZoneNames)
        {
        $Zone1 = $Zone.zonename
        Export-DnsServerZone -Name $Zone1 -FileName backup\$Zone1
        }

    Tuesday, July 23, 2019 10:15 PM

All replies

  • Hello,

    Thank you for posting in this forum.

    It seems that this script does not need to make additional changes. It's good.

    Best Regards,

    Leon


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, July 24, 2019 2:56 AM
  • Hi,

    Just checking the current situation of your problem.
    Please let us know if you would like further help.

    Best regards,
    Leon

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, July 29, 2019 3:23 AM