Question1Replies404Views×Close popoverAsvinth Saravanan (AsvinthS3124) Ford Motor Company Ltd Ford Motor Company Ltd IN View ProfileSend Message AsvinthS3124 Member since 2019 1 post Ford Motor Company Ltd Posted: June 3, 2019Last activity: June 7, 2019Posted: 3 Jun 2019 6:29 EDTLast activity: 7 Jun 2019 2:04 EDT 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 agoPosted: 7 Jun 2019 2:04 EDTUpdated: 7 Jun 2019 2:03 EDT×Close popoverRanjith Thomas (thomr2) PEGA Principal Technical Solutions Engineer Pegasystems Inc. IN View ProfileSend Messagethomr2 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.