Run Ipconfig /flushdns remotely

Question : Run Ipconfig /flushdns remotely

I need to be able to run the command
ipconfig /flushdns remotely on all the client machines

i saw the article

I downloaded psexec

Created a bat file that has the following commands
@echo off
cmd /c ipconfig /flushdns

Then i ran the following command but it is not working
psexec [\computer @file c:computers.txt -u powelladmin -p ciscoccna -n 5 -e -x -d

I get this error in the cmd prompt
PsExec v1.94 – Execute processes remotely
Copyright (C) 2001-2008 Mark Russinovich
Sysinternals –

PsExec could not start [\computer:
The system cannot find the file specified.

Solution: Run Ipconfig /flushdns remotely

If you are doing it on machines that already have ipconfig.exe located in the %windir%system32 variable, just use their local copy. You could use the syntax like so:

C:utilsSysinternals>psexec @c:computers.txt -u usernamegoeshere -p passwordgoeshere -n 5 -e -d ipconfig /flushdns

c:computers.txt has a listing of PC’s you want to execute this command on – with carriage returns after each name

And the username contains the domain in front of it like “domainuseraccount”

This should give you the results you are looking for – let us know if errors still persist. With this solution, you won’t need your own batch file to execute.