- Create a desktop shortcut by right clicking on the desktop and
selecting new, then select shortcut.
In the text field enter:
%windir%\System32\tscon.exe 0 /dest:console
(See below)
- Right click the newly created shortcut, click properties.
- Click the shortcut tab, and click the Advanced button.
- Check the "Run as administrator" box and click OK.
If this doesn't work, try changing the number zero (tscon.exe 0 /dest...
) in step 2 to the number one, and if it doesn't work, keep incrementing it until your remote desktop is released.
Alternately, open up a shell with start menu, run, cmd
. Type qwinsta
Enter, and look for the ID of the session that is in the active state (it will have a >
character at the start of its session name). That's the number you need to use in step 2.
When you want to restore the console desktop, just double click on the shortcut and allow the administrator access.
very welll done :) – J-D – 2015-06-12T03:43:00.030
since we stumbled upon that because of this issue: keep in mind that when using the work-around with tscon that the session stays open without lock! that means that anyone that has a connection to the console (for example via virtual machine manager console or vsphere) can use the open session even from another user without logging in. So in the used script there should also be a session lcok
– rominator007 – 2019-10-04T12:42:41.597