top of page

Do you have a client which doesn't always create the DNS record as you asked....



AD password expiry

A useful poweshell script to return a set of ip adresses and record type from the DNS server on the network, returned in a csv file.

There are 3 parts to this:

  1. An input file

  2. A powershell script

  3. An output file

Input file

You will need a list of servers, DNS alias's or sub domains in a txt file, return separated.

e.g.

ser12365v.bsmt.uk

dynamics.bsmt.uk

Powershell script

  1. Location of source file

  2. Location of output file

Get-Content "D:\Working Documents\ADAccountsStatus\DNSList.txt" | Resolve-DNSName | Select Name,IPAddress,Type | export-csv "D:\Working Documents\ADAccountsStatus\DNSConfig.csv"

Output file

You will get a csv file with the ip address and type or record.

Featured Posts
Recent Posts
Archive
Search By Tags
No tags yet.
Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square
bottom of page