PSExec: Execute batch files remotely
PsExec is a light-weight telnet-replacement that lets you execute processes on other systems, complete with full interactivity for console applications, without having to manually install client software. PsExec’s most powerful uses include launching interactive command-prompts on remote systems. 
Ad-hoc execution of batch files from on server remotely using psexec is an easy and a time saving activity. Here is an example of how to execute a batch file using psexec:
psexec \\REMOTESERVERNAME -u [USERNAME] -p [PASSWORD] /accepteula -d -i cmd /c D:\FILE.bat
cmd /c – this gives a context to the psexec to
/accepteula – this switch will simulate the accepting eula agreement.
D:\ – drive on the remote server
-d – Don’t wait for application to terminate. Only use this option for non-interactive applications.
-i – Run the program so that it interacts with the desktop of the specified session on the remote system. If no session is specified the process runs in the console session.
The output of the execution would be that cmd exited on with error code 0.
All of a sudden the above command started to fail. At this point my guess is that some network settings/permissions must have got updated preventing the command to execute successfully. Following is the error
Error: The parameter is incorrect.
Fix: psexec \\REMOTESERVERNAME -u [USERNAME] -p [PASSWORD] /accepteula -h cmd /c D:\FILE.bat
1. PsExec v1.98