Forum Discussion
altus_nel
11 years agoContributor
Hi,
This may help if this is still a concern for you:
* You will need to identify the session on the remote machine. (You can run it with the command "QUERY SESSION /SERVER:<your_server_name>" You'll get some output for this command. depending on how you're logged on, you should see 1 or more active sessions (in my case it was an active rdp session [2]. if you do not specify the session number it will run as the console session by default [0]
Now, once you have the active session you can use it with the -i option. I.e. psexec -i 2 \\<server_name> notepad.exe
You can also use the -s switch to run the application with elevated privilages
Regards
This may help if this is still a concern for you:
* You will need to identify the session on the remote machine. (You can run it with the command "QUERY SESSION /SERVER:<your_server_name>" You'll get some output for this command. depending on how you're logged on, you should see 1 or more active sessions (in my case it was an active rdp session [2]. if you do not specify the session number it will run as the console session by default [0]
Now, once you have the active session you can use it with the -i option. I.e. psexec -i 2 \\<server_name> notepad.exe
You can also use the -s switch to run the application with elevated privilages
Regards