How to kill remote desktop sessions

Written by mikhail polenin Google
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to kill remote desktop sessions
(Jupiterimages/Goodshoot/Getty Images)

Your copy of Windows only allows a certain number of clients to connect via Remote Desktop to your server. Sometimes you actually end up with a “ghost session” from a previous session that didn’t close properly and prevents you from making a new session. To kill this session, you must acquire privileges on the Microsoft server you run remotely and kill the process using the command line.

Skill level:


  1. 1

    Go to your "Start" menu and click “Run.”

  2. 2

    Write “cmd” and press “Enter” on your keyboard.

  3. 3

    Write “net use \server_ip /USER:your_name password.” This logs you in to the remote server without using RDP, or Remote Desktop protocol. Replace “server_ip” with your server’s IP, “your_name” with your user name and “password” with the password you use to log in.

  4. 4

    Write “query session /server:name.” Replace “name” with the server’s name. You get the session ID here.

  5. 5

    Write “reset session id /server:server_ip,” replacing “server_ip” with the server’s IP. Do not replace anything else, as all the rest is part of the command. This terminates the active session on your remote server. Try connecting now through Remote Desktop to the new server.

Don't Miss


  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.