Tuesday, August 30, 2011

PsTools - Executing Program on a remote windows 7 machine.

I could execute the program but it was running in the background. After troubleshooting figured out that you need to put the sessionid to make sure it displays for the user.

psexec -s -d -i 2 \\win7vm -u "ijaved" -p "***"  "calc.exe"

The number 2 above identified my session which was RDP. You can find the sessionid via taskmanager.

1 comment: