QuickTip – Need to Clear DNS Cache on a Remote System?
I have been using PDQ Deploy in central server mode and have had an occasional issue when deploying new systems, where the name and/or IP address is changed (say from a wired to wireless network) and the PDQ deploy server still has the DNS name and IP cached.
Obviously, running –
IPConfig /flushdns
will only clear the cache on your local system. But, the problem is that the PDQ Deploy server needs to have its DNS cache cleared.
Run this simple PowerShell commandlet to clear the DNS cache on a remote system –
Invoke-Command -script {Clear-DnsClientCache} -ComputerName Server01