Created
April 1, 2014 23:27
-
-
Save cheynewallace/9925130 to your computer and use it in GitHub Desktop.
Export DNS Zone As Text File Info To %windir%\System32\dns. Takes single zone name as parameter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
REM Run this with: dns_export.bat <your_zone_name> | |
ECHO ############################### | |
ECHO ## REMOVING OLD ZONE EXPORT ## | |
ECHO ############################### | |
del C:\Windows\System32\dns\%1.txt | |
ECHO | |
ECHO ########################################### | |
ECHO ## EXPORTING %1 ZONE DNS CONFIGURATION ## | |
ECHO ########################################### | |
dnscmd localhost /ZoneExport %1 %1.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment