My network admins would use Powershell for this. Not sure if you are restricted to only CMD.
invoke-command -computername SYSDES208 -scriptblock { D:\TestFile.exe }
If you are using a domain account or have the exact same account on the remote machine you shouldn't need to enter credentials as powershell will use the cred of the local user.
Answer from Classified on Stack Overflowpsexec executing commands remotly - Software & Applications - Spiceworks Community
PSEXEC Command to Target List of Machines in Text Docment
command prompt - How to run exe on remote PC using psexec - Stack Overflow
powershell - PSEXEC Starts on remote PC but does not execute command - Stack Overflow
Videos
Hello Folks,
Does anyone have the syntax for PSExec that will allow me to feed a list of machines in a text document and allow me to call up a script that has a list of commands that will run against the queued up list? I need the ability to to also specify the run as user before the psexec command takes off. If I am not clear on this request, please let me know.
My network admins would use Powershell for this. Not sure if you are restricted to only CMD.
invoke-command -computername SYSDES208 -scriptblock { D:\TestFile.exe }
If you are using a domain account or have the exact same account on the remote machine you shouldn't need to enter credentials as powershell will use the cred of the local user.
you need to add credential as well to run that exe.(Pass the credential in PSEXEC command) Make sure that your account also has the write and modify permission at the location at which file is being generated