PsExec Batch Shortcut
This batch file simply saves the trouble of worrying about getting all the context right for psexec and makes it easier to run things on multiple computers with varying usernames.Â Help is built into the file as you can see below, so just run the batch without any paramiters for a listing.
@echo off if "%1" == "" goto help :runit :help :end
psexec @serverlist.txt -c -s -f -n 10 -u %1 %2
echo PsExec Batch File Shortcut
echo Runs a file or command on a list of remote computers with a specified username.
echo runstuff [remote username] [command or file]
echo You MUST CHANGE the serverlist.txt to contain a list of target computers. One computer per line, hostname or IP address.
Â View more about PsExec here:
if "%1" == "" goto help