WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Terminal Server

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to Detect WTS

Keywords: 	 How to detect WTS citrix running terminal server

Question:

Is there a good way in WinBatch of detecting that the Machine is running Windows Terminal Server? also if Citrix is running on top of WTS

Can this be done with WinVersion?

Or should I look for Drive:\WTSRV + some specific process that shows WTS /Citrix is running?

Answer:

wtsIsTSEnabled() will tell you if you are on a system with terminal services enabled [WinNT T.S. Ed., Win2K, WinXP]. Please note that the "flavor" of terminal services in WinXP [and Win2K in remote admin mode] is slightly different from how full-blown application terminal server mode works, but this function does detect whether or not any of them is active/enabled.

At the moment, there's nothing specific that comes to mind about how to distinguish between whether or not Citrix is present. Some indirect evidence can be obtained with wtsQuerySessionInfo(), such as whether ICA or RDP is being used. Some other information that is dependent upon the terminal services implementation might clue you in as to whether or not Citrix is available.

I don't have a Citrix server to work with "in house" at the moment [$$$], but that's something that I'm trying to remedy. If that problem can be solved, I can look at adding some functionality to the WTS extender that specifically makes use of some Citrix-specific features.


Article ID:   W15429
File Created: 2003:05:13:11:27:42
Last Updated: 2003:05:13:11:27:42