This file contains hidden or 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
| <# | |
| .SYNOPSIS | |
| DNS Backup Script. | |
| .DESCRIPTION | |
| This script connects to a specified DNS server, retrieves DNS zone and forwarder information, exports the zones and forwarders to files, | |
| compresses the files, and performs cleanup operations. It logs all actions and sends an email notification if an error occurs. | |
| .PARAMETER LogFilePath | |
| The path to the log file where script actions and messages will be recorded. If run from ISE script pane with "Run selection", log file will be saved to C:\Temp\Backup |