Disable login screen after remote desktop session


  1. Posts : 58
    Windows 10
       #1

    Disable login screen after remote desktop session


    Hello!

    I want to know if it possible to disable the annoying login screen in the computer after remote desktop session.

    I have netplwiz with automatically logins after boot and I know the trick tscon.exe 0 /dest:console and it works, but I use remote desktop to connect to my pc from a windows tablet, and it's a pain type the command in the cmd every time I need to disconnect.

    Is there any other tweak for this like registry fix or something?

    Thank you so much!
      My Computer


  2. Posts : 17,661
    Windows 10 Pro
       #2

    alesyt0h said:
    Hello!

    I want to know if it possible to disable the annoying login screen in the computer after remote desktop session.

    I have netplwiz with automatically logins after boot and I know the trick tscon.exe 0 /dest:console and it works, but I use remote desktop to connect to my pc from a windows tablet, and it's a pain type the command in the cmd every time I need to disconnect.

    Is there any other tweak for this like registry fix or something?

    Thank you so much!
    Simple create a batch file and save it on remote host: put this command in the batch file if the remote host is Windows 10, change the session ID 1 to 0 if it's a legacy Windows:
    Code:
    tscon.exe 1 /dest:console
    Because the tscon.exe needs to be run elevated (as administrator), create an elevated shortcut for your batch file and place the shortcut on desktop of the host. Now when you want to disconnect the session and unlock the remote host restoring the local user's desktop, simply double click / tap the shortcut.

    Check this tutorial at our sister site the Seven Forums for creating an elevated shortcut: Elevated Program Shortcut - Create for Standard User - Windows 7 Help Forums

    Kari
      My Computer


  3. Posts : 58
    Windows 10
    Thread Starter
       #3

    Kari said:
    Simple create a batch file and save it on remote host: put this command in the batch file if the remote host is Windows 10, change the session ID 1 to 0 if it's a legacy Windows:
    Code:
    tscon.exe 1 /dest:console
    Because the tscon.exe needs to be run elevated (as administrator), create an elevated shortcut for your batch file and place the shortcut on desktop of the host. Now when you want to disconnect the session and unlock the remote host restoring the local user's desktop, simply double click / tap the shortcut.

    Check this tutorial at our sister site the Seven Forums for creating an elevated shortcut: http://www.sevenforums.com/tutorials/193743-elevated-program-shortcut-create-standard-user.html

    Kari
    Thanks for reply!

    Yeah, I thought about the batch file, but I still prefer some registry fix, if exist of course!
      My Computer


  4. Posts : 17
    Windows 10
       #4

    I was having the same issue and found this post.

    Thank you so much! It works great!
      My Computer


  5. Posts : 17,661
    Windows 10 Pro
       #5

    AMGPilot said:
    I was having the same issue and found this post.

    Thank you so much! It works great!
    You are welcome. Good to hear from a satisfied user :)
      My Computer


  6. Posts : 1
    Win 10
       #6

    Kari said:
    Simple create a batch file and save it on remote host: put this command in the batch file if the remote host is Windows 10, change the session ID 1 to 0 if it's a legacy Windows:
    Code:
    tscon.exe 1 /dest:console
    Because the tscon.exe needs to be run elevated (as administrator), create an elevated shortcut for your batch file and place the shortcut on desktop of the host. Now when you want to disconnect the session and unlock the remote host restoring the local user's desktop, simply double click / tap the shortcut.

    Check this tutorial at our sister site the Seven Forums for creating an elevated shortcut: Elevated Program Shortcut - Create for Standard User - Windows 7 Help Forums

    Kari

    Hi, this works fine, but is a tad manual for my liking. Any way to automate it based on the drop of the session?
      My Computer


  7. Posts : 4
    Windows 10 Pro
       #7

    Batch file to automatically determine RDS session ID and disconnect


    alesyt0h said:
    Hello!
    I want to know if it possible to disable the annoying login screen in the computer after remote desktop session.
    Put the following in a batch file:
    Code:
    for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (%windir%\System32\tscon.exe %%s /dest:console)
    Place this batch file on the target PC that you'll be remoting into. Run it when you're ready to disconnect from the Remote Desktop session.

    Full credit goes to this article.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:04.
Find Us




Windows 10 Forums