How to kill remote connection using dos?

Asked By 20 points N/A Posted on -
qa-featured

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

SHARE
Answered By 0 points N/A #133213

How to kill remote connection using dos?

qa-featured

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/

Related Questions