Asked By
lark yency
20 points
N/A
Posted on - 08/24/2012
Hi Experts,
I want to know how to kill remote connections using dos? I tried config/p command but it did not work.Does anyone know the exact command to achieve this. I would like to know commands in order.Â
Thanks.
Regards,
Lark Yency
How to kill remote connection using dos?
There are many ways to kill the remote connection in DOS, try any of the following:
1. Type query on the DOS prompt. This will show you the list of the connected sessions with Session ID. Search for the remote connection that you wish to kill and then type logoff [SessionID].
2. Or you can also type quser /server: [Server name] to kill the remote server.Â
3. You need to have an access to the target server if you are not under the same domain. Or you can have access by mapping a drive. Launch the DOS prompt and type qwinsta /server:[yourIPaddress].
http://sql-articles.com/scripts/enabling-remote-connections-via-dos-or-t-sql/