I've written a .bat file to launch an .exe file.
start chrome.exe
I'm invoking that .bat file from a remote machine using psexec (pstools)
psexec 10.60.103.10 -u admin -p pizza1234 "C:\code\myBatFile.bat"
When I invoke the .bat file locally, it launches Chrome into the current user session, and I can see it on the desktop. If I invoke the .bat file remotely (as described above), Chrome launches into a different session, and I can't see it on the (remote) desktop.
Is there a way to force an application to launch into a specific session via the Windows cmd?
-i
flag.