How a batch file runs on a remote machine started by PSEXEC

Posted by user38780 on Server Fault See other posts from Server Fault or by user38780
Published on 2010-03-25T15:02:24Z Indexed on 2010/03/25 15:03 UTC
Read the original article Hit count: 556

Filed under:
|
|

I am having an issue running a Batch file on a remote machine suing PSEXEC.

The file runs but does not run like it does when run through remote desktop.

The batch runs a file which is a 32 bit application, which opens multiple 16bit applications, this should all run under one ntvdm.exe (In one Memory Space).

Through remote desktop the batch file runs under the explorer process, and works correctly opening only one ntvdm.exe. Using PSEXEC the batch runs but not under the explorer process, a separate ntvdm.exe is open for each process.

I found running the batch from explorer in PSEXEC works, but comes up with a "File Download - Security Warning" eg. psexec.exe" \compname -u username -p passowrd -s -d -i 0 explorer C:\Program.bat

I want to be able to run the batch successfully without receiving warnings, it is a local warning and not a network share warning. Possible to recreate warning typing "explorer C:\windows\system32\cmd.exe" in Run

I would like to know if anyone knows of a way to get PSEXEC to open the batch file to run as though it was started by explorer. Or a way of removing the local "File Download - Security Warning"

Thanks

© Server Fault or respective owner

Related posts about psexec

Related posts about Windows