PowerTip: Use PowerShell to Check Status of Client DNS Cache

Doctor Scripto

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

0 comments

Discussion is closed.

Feedback usabilla icon