-
New Script: Get DNS Info V1.00
Gathers information on a network interface on specified computers in Microsoft Active Directory. The computer accounts processed are filtered by IPEnabled and DHCP Disabled.
Only computers using a Static IP Address are processed.
Creates one text file and one CSV file, by default, in the folder where the script is run. The CSV file is named DNSInfo.csv and the other is named ComputerNames.txt.
Optionally, can specify the output folder.
Process each computer gathering the following information to put in the DNSInfo.csv file:
- DNSHostName
- InterfaceName
- MACAddress
- IPAddress
- IPSubnet
- DefaultIPGateway
- DNSServerSearchOrder
- DNSDomainSuffixSearchOrder
The ComputerNames.txt file contains the DNSHostName of the computers that were processed.
The user running the script must be a member of Domain Admins.
Figure 1 shows an example of the script running.
Figure 2 shows an example of the CSV file created.
You can always find the most current script by going to https://www.carlwebster.com/where-to-get-copies-of-the-documentation-scripts/.
Thanks
Webster
August 11, 2020
DNS, PowerShell