Solved Remote Desktop, Log Previous User Back In

Egil86

New Member
Messages
7
On windows 7 I made a shortcut for when I used remote desktop I could press on this shortcut and the session came to an end and the previous user could use the computer without typing pass.

This shortcut:
%windir%\System32\tscon.exe RDP-Tcp#0 /dest:console

I have to find the right session number in task manager. So I have to change the 0 to whatever session id I log in with.

Are there a shortcut that will always work without have to edit the shortcut every time? A symbol or something for the correct login number?
 

My Computer

System One

  • OS
    Windows 8.1
Have you tried to do the same shortcut in the Desktop mode of Windows 8.x.x yet? The way it worked in 7, should still work in 8.
 

My Computer

System One

  • OS
    Linux Mint 17.2
    Computer type
    Laptop
    System Manufacturer/Model
    Toshiba Satellite C850D-st3nx1
    CPU
    AMD E1-1200 APU with Radeon (tm) HD Graphics 1.40 GHZ
    Memory
    12GB
    Graphics Card(s)
    AMD Radeon™ HD 7310 Graphics
    Sound Card
    Realtek HD
    Monitor(s) Displays
    LCD
    Screen Resolution
    1366 x 768
    Hard Drives
    Crucial M500 240GB SSD
    Mouse
    Logitech M525
    Internet Speed
    45/6 - ATT U-Verse
    Browser
    Google Chrome
    Antivirus
    None needed. It is Linux.
    Other Info
    Arris NVG589 Gateway; Router - Cisco RV320; Switch - Netgear GS108 8-Port Switch & Trendnet TEG-S50g 5-Port Switch; Access Points - Engenius ECB350, Trendnet TEW-638APB; NAS - Lenovo ix2-4; Printer - Brother HL-2280DW; Air Print Server - Lantronix XPrintServer

    A/V UPS - Tripp-Lite Smart 1500LCD 1500 Va/900 W.
Well now I find a solution that worked perfect.
Created a .bat file with this:

for /f %%i in ('qwinsta ^| findstr /C:">rdp-tcp#"') do set RDP_SESSION=%%i
:: Strip the >
set RDP_SESSION=%RDP_SESSION:>=%
tscon %RDP_SESSION% /dest:console
 

My Computer

System One

  • OS
    Windows 8.1
Back
Top