PsExec: How to specify session value for the '-i' option?



Hello everybody,

I have a question about the PsExec program, which I could not find
answer to by searching Google.

The question is about the '-i' command-line option:

At PsExec's page (http://www.microsoft.com/technet/sysinternals/
utilities/psexec.mspx), the '-i' option is described as:

In the syntax:
"
[-i [session]]
"

And in the explanations:
"
Run the program so that it interacts with the desktop of the specified
session on the remote system. If no session is specified the process
runs in the console session.
"

So, my question is this: What is this session name? Is it a number? a
string? What is it?

I have Windows 2003 Server installed. I am logged in locally, and also
using Remote Desktop session.

While I can use the '-i' option to interactively run a GUI program
(Notepad for example) locally (the console?) by not specifying the
session, I do not know how can I make the program run interactively on
the Remote Desktop session. I can make a program run interactively on
a given Remote Desktop session on a given computer by specifying the
correct session value/name/number, but I do not know how to do that.

Does anybody have an idea?

Thanks for any reply,

Jonathan

.



Relevant Pages

  • Re: PsExec: How to specify session value for the -i option?
    ... type on the command line "set s" the you see something like this ... That why I tend to believe that 'session' should be a numerical value. ... If I use "0" as the session, notepad is being run in the Console (the ... the command in a different session you can do that by specifying the -i ...
    (microsoft.public.windows.server.general)
  • Re: PsExec: How to specify session value for the -i option?
    ... now log on to your machine using RDP, ... you session name changes when you are using RDP, so if you want to execute ... the command in a different session you can do that by specifying the -i ... runs in the console session. ...
    (microsoft.public.windows.server.general)
  • Re: Vista: Error SetTokenInformation(..., session_id, ...).
    ... In Win2k\XP int works well. ... the physical console (although no error will be generated if you're ... specifying a session id that doesn't even exist). ...
    (microsoft.public.platformsdk.security)
  • Re: WindowsStationDesktop Problem
    ... the remote desktop session, the station\desktop used are the ones extracted ... from that session, which, according to what you say doesn't really represent ... Capture device enumeration fail to show all devices while executing ... The launcher application is intended to be launched from the remote ...
    (microsoft.public.win32.programmer.kernel)
  • Re: ChangeDisplaySettingsEx & EnumDisplaySettingsEx
    ... I have a vb6 application written as a service that interacts with the ... display devices and monitors and b) configure the display settings using ... Also, be aware that in Vista and after, services run in their own session ... Application Compatibility: Session 0 Isolation ...
    (microsoft.public.vb.general.discussion)