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
<# | |
.SYNOPSIS | |
Records and compares DNS entries, checking their expected values against their current values. | |
.DESCRIPTION | |
DNS entries are stored in XML files in the current path or the path specified by the -BasePath parameter. | |
When run with the -AddDomain parameter, performs DNS lookups for SOA, NS, MX, TXT, and A records, as well as an A record for the autodiscover host and both an A and CNAME for the www host. Query responses are saved in .XML files in the current path or the path specified by the -BasePath parameter. | |
When run with the -AddHost (and optional -QueryType) parameter, performs a DNS lookup for the specified host. Query responses are saved in .xml files in the current path or the path specified by the -BasePath parameter. | |
When run with the -RunComparison parameter, performs DNS lookups for all previously-generated XML files in the current path, or the path specified by the -BasePath parameter. Alerts to any discrepencies found. |
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
Function Export-Credentials{ | |
<# | |
.PARAMETER Path | |
The full path to the csv file where credentials will be stored. | |
.DESCRIPTION | |
Prompts for a username and password, then saves them to a csv file that the user specifies. | |
The password will be encrypted, and is only usable on the machine and under the user profile in which it was created. | |
.NOTES |