Follow us on Twitter Follow us on Facebook
Mike Porters - mykp.co.uk
Home Page About Me My Thoughts Photography Places to Visit Japan Walking Cars Computers Links Archived Contact
Search:
 PAGES IN THIS SECTION
Retro gaming
Computers

Page created on: 06/11/2008 11:06:37 / Last Updated: 14/05/2009 11:05:54



Remotely Restart Remote Desktop

» Want to have your say on this article?

If your a tech head like me then you might have a number of servers or computers around the office, home or even internet which you remote desktop too from time to time to use. Obviously this is a great time saver, not having to leave your desk to use a machine miles away is a great time saving.

However sometimes a connection might be refused, especially if there are no available licenses left on the machine you are trying to connect to.

A good example of this is one of my internet servers. The machine runs Windows 2000 which by default only has two remote desktop licenses. So if I connect from my laptop and then connect from my desktop thats both used. Now if I try to connect via a third machine I get a no available licenses message. Therefore you cant connect.

Not to bad if the machine is in the same building, but if its 250 miles away you either have to get someone to go look at it or go yourself. Not a real option if its in a datacentre.

To restart the Remote Desktop Protocol or Remote Desktop Service, whatever you want to call it you can do the following.

goto the DOS window, goto Start, Click Run and Type CMD and press return.

You should now have a black window called c:\windows\system32\cmd.exe - This is the DOS prompt window.

I will also add, you will need to know the name or ip address of your server.

To find out what computers are connected to the machine via RDP type:

qwinsta /server:<machine name or IP address>

and press return, you maybe asked for the username and password.

Once you have a list you need to kill the processes using RDP, type:

rwinsta 1 /server:<machine name or IP address>

By default the processes for RDP are 1, 2, 3, etc. So 1 is the logical place to start.

if you have more than 1 then you need to repeat the process with the next number listed with qwinsta.

Remember anybody connected when you do this will be disconnected.

So to recap, lets say our machine is called "mikesmachine"

To view the RDP processes we type:

qwinsta /server:mikesmachine

and to kill the rdp processes we type:

rwinsta 1 /server:mikesmachine

This works for me on all the machines I have tried it on I am sure that someone will give me an easier way of doing this.

Share this web page with others.
Delicious bookmark icon StumbleUpon bookmark icon Technorati bookmark icon Reddit bookmark icon Digg bookmark icon Facebook bookmark icon Ma.gnolia bookmark icon Mixx bookmark icon

top of page


Your Comments on this article:
Disclaimer: The views and opinions expressed below are strictly those of the individual author/poster. The views and opinions shown below are not necessarily those of Mike Porter, his associates and/or sponsors. We do not endorse any view below or necessarily agree/disagree with these views. Views posted below are entirely those of the poster, not me!

There are currently no comments on this article, why not be the first using the form below.

Have something to say about this article? Post your comments here.

Please fill in all the required fields below, marked with a *

Your Name:

*

Please Note:
All posts are moderated before they appear here.

If you post crap then it gets deleted. Any posts with offensive words in will not be posted.

All posts must be verified with the code below. Enter the text in the image below in the box where prompted.

Input what you see here in the box below.

Enter the above Code here:

Your Email:

*
This is required is you want a response and WILL NOT be shown on the site..

Comment Title:

Your Comments:

*

You may experience problems if you copy and paste text in here. I dont know why and am investigating! You can type text in directly and it will work.

 

I cannot possibly email everyone back who send messages from here. I get litterly hundreds a month. If you have a question, please post it by all means but as to whether it gets answered or not will purely depend on if I have the time or inclination to do so. All comments posted here will be published on the site as per the comments above and by posting here you agree to have these comments published.

 

top of page

"mike porter's - mykp.co.uk", On the web since 1995 

© Copyright - 1997-2010 - Mike Porter/mykp.co.uk  -  You are visitor no: 3215451.
Web Site created by Milkshake Design Enlighten CMS system.
copyright | accessibility statement | privacy policy
Home Page | About Mike Porter | My Thoughts | Photography | Places to Visit | Japan | Cars | Links | Contact | Web Design | Dell Computer Deals | Links Directory
SEO Links: leak detector fluid | baby equipment hire | facial tanners | camera shop | falken tyres | michael porter | womens waterproof jacket | enduro tyres


Valid CSS!

Valid HTML 4.01 Transitional