Windows 10: Security risks by using tscon.exe to disconnect Remote session

Discus and support Security risks by using tscon.exe to disconnect Remote session in AntiVirus, Firewalls and System Security to solve the problem; Hi, I have a scenario where I want to communicate with a software which requires an active logged on user. Upon a bit of searching, I realized that I... Discussion in 'AntiVirus, Firewalls and System Security' started by Archan Ranade, Sep 18, 2020.

  1. Security risks by using tscon.exe to disconnect Remote session


    Hi,


    I have a scenario where I want to communicate with a software which requires an active logged on user. Upon a bit of searching, I realized that I can use the tscon.exe utility inbuilt in Windows Reference - https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/tscon. This utility disconnects the remote session used via Remote Desktop. However the user still remains logged in. I wanted to know whether there are any security risks associated by doing this. The machine on which I am using to disconnect is a VM, not an actual physical machine. Please let me know if there are any specific security risks associate with this.


    Thanx,

    Archan

    :)
     
    Archan Ranade, Sep 18, 2020
    #1
  2. cubrman Win User

    “tscon 'SessionID' /dest:console” always shows “Session ID not found”

    I have a script that closes remote desktop connection and runs an application on a remote computer. It is helpful when the application requires a special access to your GPU.

    To shut down the remote session the script uses:

    tscon 'SessionID' /dest:console

    The script is no longer working after I switched to Windows 10 - tscon constantly shows "Session ID not found" error. I use "query session" to figure out my SessionID.
     
    cubrman, Sep 18, 2020
    #2
  3. Can't restore console using tscon after Feature Update 1903

    Hi Clark,



    Thank you for writing to Microsoft Community Forums.



    I understand that you are facing issues while restoring the Remote Desktop Console using TSCON on Windows 10 1903.



    Since the issue is related to Remote Desktop Session, we do have a dedicated team who support issues related to Remote Desktop and TSCON. I would suggest you to post your query on

    TechNet forums
    .



    Regards,

    Prakhar Khare

    Microsoft Community – Moderator
     
    Prakhar_Khare, Sep 18, 2020
    #3
  4. TomMartow Win User

    Security risks by using tscon.exe to disconnect Remote session

    [Help] Remote Desktop Connection


    Instead of disconnecting the remote connection as usual, run the tscon command on remote host. If you want to make it simpler you can create a shortcut for the tscon command on remote host desktop.

    Kari Can I not make this happen automatically?
     
    TomMartow, Sep 18, 2020
    #4
Thema:

Security risks by using tscon.exe to disconnect Remote session

Loading...
  1. Security risks by using tscon.exe to disconnect Remote session - Similar Threads - Security risks using

  2. Windows 10 Remote Desktop Session - Sound stops when disconnect

    in Windows 10 Software and Apps
    Windows 10 Remote Desktop Session - Sound stops when disconnect: This was originally asked as a question back in 2016 https://answers.microsoft.com/en-us/windows/forum/apps_windows_10-winapps-appscat_music/windows-10-remote-desktop-session-sound-stops-when/40594f6f-933a-4a2e-90cc-388fd4410851 To summarise: Connecting or disconnecting a...
  3. The remote session was disconnected because there are no Remote Desktop License Servers...

    in Windows 10 News
    The remote session was disconnected because there are no Remote Desktop License Servers...: [ATTACH]Remote Desktop Session Host (RDSH) is a role in Remote Desktop Services (RDS) that host Windows applications or desktops. These can be accessed using the […] This article The remote session was disconnected because there are no Remote Desktop License Servers...
  4. Chrome Extension Security Risk

    in AntiVirus, Firewalls and System Security
    Chrome Extension Security Risk: See here Chrome Extensions Security Risk 158904
  5. How to use multitouch in remote desktop session?

    in Windows 10 Ask Insider
    How to use multitouch in remote desktop session?: Hi folks, When I use RDP from my laptop, three-finger touches attempt to change the display topology via the Project settings instead of sending a middle-click. It drives me nuts, since middle-click is something I need to constantly use while changing projector /...
  6. Freezing Remote Sessions

    in Windows 10 BSOD Crashes and Debugging
    Freezing Remote Sessions: Hi, I am working in customer support and we need to remotely connect to customers PC for solving issues they have. Since Windows 10 I noticed that sometimes programs sometimes system programs like Services and sometimes normal software programs stop giving me the...
  7. “tscon 'SessionID' /dest:console” always shows “Session ID not found”

    in Windows 10 Network and Sharing
    “tscon 'SessionID' /dest:console” always shows “Session ID not found”: I have a script that closes remote desktop connection and runs an application on a remote computer. It is helpful when the application requires a special access to your GPU. To shut down the remote session the script uses: tscon 'SessionID' /dest:console The script is no...
  8. Remote lock session

    in User Accounts and Family Safety
    Remote lock session: I would like to be able to remote suspend time allotted for my child's account from time to time -- you know, to get them to come eat, etc. https://answers.microsoft.com/en-us/windows/forum/all/remote-lock-session/449a1a86-02e0-48fe-8641-89fd7de8f8e7"
  9. Remote session was disconnected because there are no remote deskcop license servers...

    in Windows 10 Customization
    Remote session was disconnected because there are no remote deskcop license servers...: I'm trying to connect to a host server and am getting this message. Is the problem on my end or the host's end? How would I go about checking to see if the problem is on my side? The tech support on the host's side won't be available until Monday morning, and I need to...
  10. Turn On or Off 'Your remote session will be disconnected' in Windows

    in Windows 10 Tutorials
    Turn On or Off 'Your remote session will be disconnected' in Windows: How to: Turn On or Off 'Your remote session will be disconnected' in Windows Turn On or Off RDC "Your remote session will be disconnected" Message in Windows [img] Information You can use the Remote Desktop Connection (mstsc.exe) or connect to and control your Windows...