Remote FlushDNS

You can flush DNS using:

Here is the command you use
psexec /accepteula \\%1 ipconfig -flushdns

Only first time you need to add /accepteula, later you can do without:
psexec \\%1 ipconfig -flushdns

Replace %1 with remote computer name.

Here is AutoIt program that is pretty handy:
$cName = InputBox('Remote FlushDNS','Type a computername to flush:') 

if StringLen($cName) > 0 Then
 RunWait(@ComSpec & ' /c ' & 'psexec.exe \\' & $cName & ' ipconfig -flushdns & pause')
 Else 
 MsgBox(0,'Info','No computername was entered. Exiting.. Bye. Have a nice day!')
 EndIf
Here is example how to compile AutoIt (au3) application

No comments: