Using Powershell to display DNS Cache

In a tip picked up from Angel Luis, I found this Powershell script to be useful. It may come in handy from time to time.

His article recommends creating a batch file with the following content.

@echo off
Powershell -noexit "ipconfig /displaydns | select-string 'Record Name' | foreach-object { $_.ToString().Split(' ')[-1]   } | Sort | Out-Gridview"

Jeff Loucks
Available Technology
Available Technology

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>