KI 0413 LAB-IT Tips: Leave Lab-PC unlocked after a remote session (windows)
(updated )
2. Open a cmd console by right clicking and choose "Run As Administrator"
3. Type "query session" in the console and find the session ID of the active logged on user:
It will look similar to this:
4. When you are ready to disconnect the remote session, type in the cmd console (replacing the session ID and the password with those for the local user):
tscon sessionid /dest:console /PASSWORD:passwordforthelocaluser
For example: