none
I need to switch the account on the remote computer and activate it! RRS feed

  • General discussion

  • I need to log on to another account on the remote computer and keep it active. Perform specific window tasks

    [192.168.2.16]: PS C:\Users\he123\Documents> quser.exe                                                                 

     USERNAME              SESSIONNAME        ID  STATE   IDLE TIME  LOGON TIME                                            

     administrator         console             1  Active      none   2018/10/20 10:08                                      

    [192.168.2.16]: PS C:\Users\he123\Documents> quser.exe                                                                 

     USERNAME              SESSIONNAME        ID  STATE   IDLE TIME  LOGON TIME                                            

     administrator                             1  Disc            .  2018/10/20 10:08                                      

     he                    rdp-tcp#1           2  Active          .  2018/10/20 10:12                                      

    [192.168.2.16]: PS C:\Users\he123\Documents> quser.exe                                                                 

     USERNAME              SESSIONNAME        ID  STATE   IDLE TIME  LOGON TIME                                            

     administrator                             1  Disc            .  2018/10/20 10:08                                      

     he                                        2  Disc            .  2018/10/20 10:12                                      

    [192.168.2.16]: PS C:\Users\he123\Documents> tscon.exe 2 /DEST:Console /v                                              

    Connecting sessionID 2 to sessionname Console                                                                           

    [192.168.2.16]: PS C:\Users\he123\Documents> quser.exe                                                                 

     USERNAME              SESSIONNAME        ID  STATE   IDLE TIME  LOGON TIME                                             

     administrator                             1  Disc            1  2018/10/20 10:08                                      

     he                    console             2  Active          .  2018/10/20 10:12                                       

    [192.168.2.16]: PS C:\Users\he123\Documents> exit     

    The final result I need:

    he                    console             2  Active

    or:

    he                    SESSIONNAME             2  Active

    • Changed type Bill_Stewart Thursday, December 20, 2018 9:20 PM
    • Moved by Bill_Stewart Thursday, December 20, 2018 9:21 PM Unanswerable drive-by question
    Saturday, October 20, 2018 2:21 AM

All replies

  • We cannot male any sense of your post.  Please post correctly using the code posting tools.  Please ask a specific question or have someone help you with your English and understanding of asking questions.


    \_(ツ)_/

    Saturday, October 20, 2018 3:11 AM
  • I want to use the script command to login a new account to the computer and let it be activated.

    Ok. I don't like English either.
    I describe it in Chinese.

    我想使用script命令将新帐户登录到计算机并激活它。

    • Edited by sf00 Saturday, October 20, 2018 3:35 AM
    Saturday, October 20, 2018 3:32 AM
  • Sorry  but we don't speak Chinese and your statements in any language make no sense.  Perhaps you could post in a Chineses forum


    \_(ツ)_/

    Saturday, October 20, 2018 3:55 AM
  • wait?OK. I need your script expert's Chinese Forum website. I don't know.
    Saturday, October 20, 2018 5:54 AM