Question1Replies328Views AsvinthS3124 Member since 2019 1 post Ford Motor Company Ltd Posted: June 3, 2019Last activity: June 7, 2019 Closed Disconnect an RDP Session Without Locking the MachineHi,I have used the .bat file to terminate the session but it's not terminating it.echo offtscon %sessionname% /dest:consolePlease need your support.Thanks,Asvinth Saravanan Robotic Process Automation ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 1 year agoUpdated: 1 year agothomr2 PEGA replied to AsvinthS3124Please try running below command on the remote computer as an Administrator: %windir%\System32\tscon.exe RDP-Tcp#NNN /dest:console (where RDP-Tcp#NNN is the ID of your current Remote Desktop session; for example, RDP-Tcp#0. You can see it in the Windows Task Manager on the Users tab, in the Session column) for more details on syntax/parameters on tscon application tool, please refer: https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/tscon Hope this info helps.