RPD on my windows 2003 server sometimes becomes incapable to accept connections. But netstat shows that port is listened.

c:\> netstat -ano | find "3389"
TCP    192.168.1.1:3389     0.0.0.0:0       LISTENING     3224

nmap from linux machine shows than port is closed. I have tried some recipes and have lost hope =(

so: i can execute tscc.msc and restart listener! can i do that from command line (to write script)?

link|improve this question

Why not just stop and restart the Terminal Services service? – joeqwerty Nov 24 '11 at 14:00
net stop _servicename_ does not work. @joeqwerty, does windows really not have a mechanism of controlling rdp listeners via command line? When I started to search, I thought that will be very simple – hraphrap Nov 24 '11 at 16:11
What doesn't work? Do you get an error message? Are you running: net stop "Terminal Services" with the quotes? – joeqwerty Nov 24 '11 at 16:50
It seems, the problem is solved by re-creation of the listener. if problem will appear again, i'll add error message of command 'net stop' – hraphrap Nov 25 '11 at 6:14
When I'm entering net stop "Terminal Services", it says: The requested pause or stop is not valid for this service. More help is available by typing NET HELPMSG 2191 – hraphrap Nov 27 '11 at 5:24
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.