$theTitle=wp_title(" - ", false); if($theTitle != "") { ?>
About Virtualization, VDI, SBC, Application Compatibility and anything else I feel like
A while ago I included a new undocumented API into my JwaWinsta unit which is called WinStationServerPing. This API “pings” a Terminal or Citrix server and verifies that Terminal Server is up and running. It is not the same as a regular networking ping! This API actually makes a connection to a (remote) Terminal Server and verifies that Terminal Server runs and accepts connections.
I wrote a small cmdline tool that uses this API to ping a Terminal Server which can be used to quickly determine if a Terminal Server is up and running. I named it WTSPing.
So how does it work? Open up a command prompt (Start -> Run -> cmd) and type WTSPing /? to see the help:
WTSPing (c) Remko Weijnen 2008, www.remkoweijnen.nl
Pings a Terminal Server with the WinStationServerPing API.
WTSPing [/SERVER:servername] [-n count]
/SERVER:servername Specifies the Terminal server (default is current).
-n count Number of echo requests to send (default is 3).
If you just type WTSPing it will ping the local Terminal Server 3 times:
You can specify the number of pings with the -n parameter (eg -n 5). If you want to ping a remote server specify the server name with the /SERVER: parameter (eg /SERVER:MYSERVER).
Please note that Vista and Server 2008 do not support this API call from or to remote systems.
Have fun with it and let me know if you like it!
Download: WTSPing (2240 downloads)
6 Responses for "Terminal Server Ping Tool"
[…] outil qui permet de valider l’ état des services Terminal Server d’une machine. WTSPing effectue de manière transparente une connexion RDP sur le serveur cible et valide que celui-ci […]
New Jersey ups directory…
[…] spaming bots doesn’t hurt anyone). seeing as you are not pinging from your ip address you won’t get banned. Now you can create a script that is even more devilish and exploit the black hats directly by, creating a fake […]…
Does this work aganist windows xp terminal services? I get a Failed to open handle to Terminal Server (Access is denied) when trying it.
@Jonathan: On XP RemoteRPC to Terminal Server is disabled by default. You can enable it via regedit on HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server set REG_DWORD AllowRemoteRPC to 1 (I think you have to restart to activate).
I have written several VB scripts (using WMI) to check and test the availability of terminal (Citrix) servers. I am considering using your technology. I can include it by using a call to WTSPing.exe in a DOS session, or I could include the source (much cleaner). Is the source code available?
I want to monitor when Terminal Services stop working on one of my servers.
I use -n 99999 but is there any option like ping -t?
Leave a reply