Sometime it’s very annoying to leave the monitor console session locked after the machine has been remotely controlled using remote desktop (RDP). To switch back the current session to the monitor simply start a command prompt and execute the following command
1 |
%windir%\System32\tscon.exe 1 /dest:console |
If it does not work, try to use 0 (zero) instead of 1, or test with another number until it works or get the exact session id using the command “qwinsta” (Display information about Remote Desktop Services sessions) to get the ID. Your ID is found on the line with the “>” character.
1 2 3 4 5 6 7 8 9 10 11 |
Microsoft Windows [Version 6.2.9200] (c) 2012 Microsoft Corporation. All rights reserved. C:\Users\TEMP>qwinsta SESSIONNAME USERNAME ID STATE TYPE DEVICE services 0 Disc console 1 Conn >rdp-tcp#0 administrator 2 Active rdp-tcp 65536 Listen C:\Users\TEMP> |
— Johan Ryberg