You can definitely run a utility from another server. For this use the following steps:
1. Download PSTOOLS zip files from http://technet.microsoft.com/en-in/sysinternals/bb897553.aspx
2.Create a network drive on local machine to the remote machine onto which you want to execute the command
3.Open the command window from your machine
4.Copy the path of the location at which the psexec is saved.
Provide the details in the required format.
As an illustration, to run exportsecurity utility:
Open command Prompt and enter:
"Location of psexec.exe file"\PsExec.exe \\"Remoteserver Name" -u "Username" -p "Password" -i -d cmd /c "Batch file location on remote server"
Batch file at remote computer:
ExportSecurity.cmd -f:password.txt /A="Application Name",/U="username"
Note: Don't use the quotation marks.
Similarly, you can run other utilities.
Hope this helps.....
Thanks you two! I know psexec could accomplish this task, but we're aware that it is also an enabled for certain malware and viruses which we really don't want to introduce to our production environment. Is there any alternative? Perhaps a batch script on our batch scheduler that can activate a Scheduled Task on our Web Server? Not sure if this is possible without the use of psexec.
Brilliant! Thanks! I'll give this a shot.
This works, definitely. But I've run into a new issue now. I need ServerABatch.bat to wait until the scheduled task has been completed. Is that even possible?
Edit: Found the answer to this here: windows - How do you wait on a Task Scheduler task to finish in a batch file or C#? - Stack Overflow