As Technet Gallery is retiring so moving the code to Git Hub. (click below github download link for this script)
This script will use list of IP address , pings them report if its up or down and query the Hostname from DNS as well.
Extract the Zip file from above.
Thanks for reading …