Powershell – Scan Log for IP’s and try to Resolve HostName

Recently i had a scenario which i needed to look for IP’s on IIS Logs,.. so i used the solution from Post FIND ALL IPS ON LOG

but then i realized its not good enough cause i wanted to check the Hostname for each IP i’ve found so i used the solution from the Post Resolve Ip to Name

eventually I’ve decided  to combined it together and make benefit of using all in one script which will find any ip address from any file then it will

try to resolve each IP Address from the file to Hostname, here you go –




(Visited 148 times, 1 visits today)

Leave a Reply