• New Script: Get DNS Info V1.00

    August 11, 2020

    DNS, PowerShell

    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 1
    Figure 1

    Figure 2 shows an example of the CSV file created.

    Figure 2
    Figure 2

    You can always find the most current script by going to https://carlwebster.com/where-to-get-copies-of-the-documentation-scripts/.




    About Carl Webster

    Carl Webster is an independent consultant specializing in Citrix, Active Directory, and technical documentation. Carl (aka “Webster”) serves the broader Citrix community by writing articles (see CarlWebster.com) and by being the most active person in the Citrix Zone on Experts Exchange. Webster has a long history in the IT industry beginning with mainframes in 1977, PCs and application development in 1986, and network engineering in 2001. He has worked with Citrix products since 1990 with the premiere of their first product – the MULTIUSER OS/2.

    View all posts by Carl Webster

    No comments yet.

    Leave a Reply