Testing Download Templates

Filename DupeDNSV2.zip
Filesize 20 KB
Version 2.00 Previous versions
Date added July 31, 2016
Downloaded 658 times
Category Miscellaneous

Script provided by Michael B. Smith – Exchange MVP

## Michael B. Smith
## michael (at) TheEssentialExchange.com
## April, 2012
##
## Patched 2016-02-03
## If a computer had multiple IP addresses, the scanner would get confused and
## not properly populate the $objects array.
##

##
## Primary functionality:
##
## Based on either an input file or the output of a default command:
##
## dnscmd ( $env:LogonServer ).SubString( 2 ) /enumrecords $env:UserDnsDomain “@”
##
## Create an array containing all of the DNS objects describing the input.
##
## —-
##
## Secondary functionality:
##
## Find all the duplicate IP addresses and the duplicate names
## contained within either the file or the command output.
##
## By specifying the -skipRoot option, all records for the root of
## the domain are ignored.
##

## General record format returned by DNScmd.exe:
##
## name
## [aging:xxxxxxxx]
## TTL
## resource-record-type
## value
## [optional additional values]
##
## Fields may be separated by one-or-more spaces or one-or-more tabs
## [aging:xxxxxxxx] fields are optional
##