1. tscon {sessionid | sessionname}

    how to use it? what should I put in place of sessionid or sessionname? I tried putting the user name, but its not working, its says session name not found. I even tried

    tscon computernameusername
    still the same problem.

    Please help.

    • Open a CMD prompt, and run the following command:

      TaskList will give you a list of all the running process, it also includes the Session Name (if there is one) and Session# (Note: the user must already be logged in to switch to it; otherwise first use “%SystemRoot%System32tsdiscon.exe /v” to disconnect from the current session [/v will write the current session name and ID to the command window while disconnecting; but you will need to log back on to that account to see it], and then logon as a different user to stat the new session. Now you can switch back using %SystemRoot%System32tscon.exe see the notes below.).

      Open a CMD prompt, and run the following (/V is optional):
      tsdiscon.exe /v

      Optional Verbose Output (only visible if you log back in after using /V above):
      “Disconnecting sessionID 2 from sessionname Console”

      Logon as a new user, Open an Elevated CMD prompt [Runas Administrator], run the following command to switchback to session 2:
      tscon.exe 2 /DEST:Console /PASSWORD:* /V

      Note: * will prompt you for the password of the account/session you are switching to; otherwise the password needs to be entered in the command in lieu of the asterisk as plan text.

      Now to switch back to session 1, run the following from an Elevated CMD prompt (enter the password for the account that is logged in to Session 1 when prompted):
      tscon.exe 1 /DEST:Console /PASSWORD:* /V

  2. If you are switching to an account that hasn’t been logged in, press Win + R to bring up the Run dialog box, type tsdiscon, and press Enter. It quickly locks your current account and switches you back to the log in screen readying for you to make the switch.

    I typed tsdiscon in the Win + R dialog box, except it says file name not found. Please help me with this!


Please enter your comment!
Please enter your name here