July 8th, 2013

PowerTip: Use PowerShell to Check Status of Client DNS Cache

Doctor Scripto
Scripter

Summary: Use Windows PowerShell 3.0 in Windows 8 to check the status of your client DNS cache.

Hey, Scripting Guy! Question How can I use Windows PowerShell 3.0 in Windows 8 to inspect the DNS cache on my computer for entries that do not have records?

Hey, Scripting Guy! Answer Use the Get-DNSClientCache function, pipe the results to a Where-Object cmdlet, and look for a status that is not equal to 0 (which means success):

Get-DnsClientCache | where status -ne 0

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.