Can I find the session ID for a user logged on to another machine?
        Posted  
        
            by Dan
        on Super User
        
        See other posts from Super User
        
            or by Dan
        
        
        
        Published on 2010-03-23T17:52:29Z
        Indexed on 
            2010/03/23
            17:53 UTC
        
        
        Read the original article
        Hit count: 292
        
I want to open an application on another computer on the same network via the command line. The scenario here is that the user is in a room surrounded by about 20 computers and wants to be able to launch the same app on every computer without walking from screen to screen opening it up on each individual machine. I've discovered that I can get the basic functionality for this using PsExec as follows:
psexec \\[computer] -u [username] -p [password] -d -i [SessionID] [program]
For computer, username, password, and program, I'm good. Does anyone know of a way I can figure out which SessionID is assigned to a particular user logged on to a particular machine on the network? Alternately, is there a better way to go about what I'm trying to accomplish?
© Super User or respective owner