Question
1
Replies
404
Views
Ford Motor Company Ltd
Posted: June 3, 2019
Last activity: June 7, 2019
Closed
Disconnect an RDP Session Without Locking the Machine
Hi,
I have used the .bat file to terminate the session but it's not terminating it.
echo off
tscon %sessionname% /dest:console
Please need your support.
Thanks,
Asvinth Saravanan
Please 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.