+ Post New Thread
Results 1 to 10 of 10
Windows Thread, killing remote desktop sessions? in Technical; hi all, anyone any ideas as to how I can kill dead remote desktop sesisons? I us e this to ...
  1. #1
    salan's Avatar
    Join Date
    Nov 2007
    Posts
    384
    Thank Post
    41
    Thanked 42 Times in 28 Posts
    Rep Power
    28

    killing remote desktop sessions?

    hi all,
    anyone any ideas as to how I can kill dead remote desktop sesisons?
    I us e this to admin some of our servers and occationally the sesison goes south (black screen). I then have to start another session. but how do I kill the first session?
    What proccess do I kill on the server please?
    There seems to be many running (a copy of explorer copy of.... etc etc).

  2. #2

    EduTech's Avatar
    Join Date
    Aug 2007
    Location
    Reading
    Posts
    5,074
    Thank Post
    160
    Thanked 937 Times in 731 Posts
    Blog Entries
    3
    Rep Power
    275
    Got to task manager > users > right click on user > End the remote sessions from there

    James.

  3. #3

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,592
    Thank Post
    109
    Thanked 770 Times in 598 Posts
    Rep Power
    183
    Start -> Programs -> Adminstrative Tools -> Terminal Services Manager

    Right-click on the session and select logoff or reset.

  4. #4
    Vegas's Avatar
    Join Date
    Jul 2005
    Location
    Gloucestershire
    Posts
    371
    Thank Post
    19
    Thanked 38 Times in 31 Posts
    Rep Power
    30
    task manager - users - logoff?

  5. #5
    salan's Avatar
    Join Date
    Nov 2007
    Posts
    384
    Thank Post
    41
    Thanked 42 Times in 28 Posts
    Rep Power
    28
    Thanks! Couldn't see wood for tree's!!

  6. #6

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,592
    Thank Post
    109
    Thanked 770 Times in 598 Posts
    Rep Power
    183
    Quote Originally Posted by EduTech View Post
    Got to task manager > users > right click on user > End the remote sessions from there
    Quote Originally Posted by Vegas
    task manager - users - logoff?
    My way's better because you can administer all the servers at once

  7. #7

    EduTech's Avatar
    Join Date
    Aug 2007
    Location
    Reading
    Posts
    5,074
    Thank Post
    160
    Thanked 937 Times in 731 Posts
    Blog Entries
    3
    Rep Power
    275
    Quote Originally Posted by Ric_ View Post
    My way's better because you can administer all the servers at once
    Get Out!!!

    My way was just the first thing that came into my head soo nerrr!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


  8. #8

    Join Date
    Mar 2008
    Location
    Gloucestershire
    Posts
    35
    Thank Post
    2
    Thanked 2 Times in 2 Posts
    Rep Power
    14
    If you are talking about an RDP session to a server which goes pear shaped and you then have to log on to that server again then the easiest way would be to do the following:

    1)... From a DOS prompt type "quser".
    2)... This gives you a list of connected sessions with session IDs
    3)... Identify the dodgy session ID and type 'logoff <SessionID>'.

    You can also check remote servers as well by doing:
    quser /server:<server name>
    which gives you information about connected sessions for the specified server.

    See: Query user
    for a more in depth look at quser.

    HTH

  9. #9

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,908
    Thank Post
    3,434
    Thanked 1,084 Times in 1,000 Posts
    Rep Power
    370
    on the server if you connect using another session cant you right click on my computer --> manage and see all the remotely connected sessions and do it that way ?

    If not then I must be thinking of shared files and not the terminal services section as per above.

    Could do with having a server 2003 and a 10.5 server configured on my mac pro under 2 vm's to play around with settings etc.

  10. #10

    Join Date
    Apr 2012
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Smile Solution How to Kill remote desktop sessions of a remotely located server

    Quote Originally Posted by salan View Post
    hi all,
    anyone any ideas as to how I can kill dead remote desktop sesisons?
    I us e this to admin some of our servers and occationally the sesison goes south (black screen). I then have to start another session. but how do I kill the first session?
    What proccess do I kill on the server please?
    There seems to be many running (a copy of explorer copy of.... etc etc).

    In command prompt, execute following commands to kill terminal services sessions remotely. Replace blue with your own parameters.

    Step 1. Gain enough privilidge to kill RDP connection on the server.
    net use \\servername_or_IP /USER:username “password“

    Step 2. List the connection to a particular server and get session ID.
    query session /server:servername

    Step 3. Reset the session which you don’t need using ID of the session from Step 2.
    reset session ID /server:servername_or_IP

    That’s it! However it seems that on some machines, query.exe and reset.exe are not available. If that’s the case, try qwinsta.exe and rwinsta.exe respectivly in place of query.exe and reset.exe. Alternatively, you should be able to find query.exe and reset.exe in “C:\WINDOWS\System32\dllcache“. Copy the files to System32 directory and you are good to go.


    Ex:

    step 1:
    net use \\120.130.12.4 /USER:administrator gjhsd71

    step 2:
    query session /server:120.130.12.4

    you will get result like this....session id is 1 here

    SESSIONNAME USERNAME ID STATE TYPE DEVICE
    -----------------------------------------------------------------------------
    console Administrator 1 Active

    step 3:
    reset session 1 /server:120.130.12.4

SHARE:
+ Post New Thread

Similar Threads

  1. Remote Desktop or Remote Assistance......?
    By tosca925 in forum Windows
    Replies: 20
    Last Post: 31st January 2012, 08:26 PM
  2. remote desktop
    By kevin_lane in forum How do you do....it?
    Replies: 14
    Last Post: 22nd February 2009, 11:27 PM
  3. Remote Desktop Error
    By mworm in forum Windows
    Replies: 7
    Last Post: 7th April 2008, 10:27 AM
  4. Remote Desktop via a Domain Name
    By Zoom7000 in forum Wireless Networks
    Replies: 1
    Last Post: 20th September 2007, 09:24 AM
  5. XP Remote Desktop problem
    By netadmin in forum Wireless Networks
    Replies: 19
    Last Post: 14th August 2007, 09:00 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •