Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check if remote desktop service is up and running? 1

Status
Not open for further replies.

grofaty

IS-IT--Management
Jan 16, 2003
370
SI
Hi,
using Windows 2008 RC2 I am constantly restarting server (because I am doing some test). Server is installed inside VMware environment. After restart I can't see if computer is really up and running. To get some information I use command:
ping /t <server_ip_address>
But this command only tells that network is up, not that remote desktop service is up.

So I am using Remote Desktop and time to time check if remote desktop server is up, so I can connect to computer. Now I have to manually check if server is up that I can login.

Is there a way (like a 'ping' command) to get info if remote desktop server is up and so I am able to login?
Thanks
 
Hi grofaty,

sounds like a Power Shell job to me.
Using psexec, a command like this should do:
Code:
cmd /c psexec \\[computername] netstat -an | find ":3389" > logfile.txt
or if you get permission failure:
Code:
cmd /c psexec -u [user] -p [password] \\[computername] netstat -an | find ":3389" > logfile.txt

The lines of the resulting logfile containing "ESTABLISHED" are then the users logged on via RDP. :)

Good luck!
MakeItSo

“Knowledge is power. Information is liberating. Education is the premise of progress, in every society, in every family.” (Kofi Annan)
Oppose SOPA, PIPA, ACTA; measures to curb freedom of information under whatever name whatsoever.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top