Terminal Server Licensing/Gateway WMI Providers

  • Comments 7


I am Nitin and I work as program manager in the Terminal Services team.

I would like to talk about the WMI provider that we have introduced for Terminal Services Licensing and Terminal Server Gateway.

In Longhorn server, we have introduced the support for a WMI provider for the Terminal Server Licensing role. Using this provider, Terminal Server Licensing admin can administer the License Server. Typically, the Terminal Server Licensing admin does the following tasks and all of these tasks are supported by this provider:

  • Activating, deactivating, reactivating the license server
  • Installing key packs
  • View details of licenses issued by given license server
  • Generate per user license usage reports

Admin can write scripts that use these interfaces and can perform the above server administration and management tasks.
For more information on the Terminal Server Licensing WMI provider, click here.
TS Gateway server (TSG) is a new role in Longhorn that allows you to establish secure remote connection to remote computers hosted on internal networks, over the internet.
In addition to the introduction of this role itself, we have introduced a WMI provider that can be used by the TSG admin to administrate, monitor and control TSG usage.
TSG admin does tasks as:

  • Creating access policies on TSG servers (these policies control user access to remote computers via Gateway);
  • Configuring TSG server (specifying max simultaneous connections etc.);
  • Configuring TSG server for load balancing scenarios; and 
  • Monitoring and controlling active user connections via Gateway.

All these tasks are supported by WMI provider and more information on this can be viewed here.

We plan to enhance these providers in next milestones (viz. LH beta3 etc). We will try to add support for more admin tasks.

To make this more comprehensive, I would like to hear from you as what important admin tasks are missing from the above list that should be supported via WMI provider? Your feedback is highly appreciated.

Leave a Comment
  • Please add 8 and 2 and type the answer here:
  • Post
  • I've been meaning to put up a quick post on this for a few days - I haven't seen much discussion in the

  • This is a great move - left my thoughts here: http://citrixcommunity.com/blogs/access_essentials/archive/2006/10/05/Easier-TS-licensing-on-Longhorn-Server.aspx

  • One item I don't see is the ability to get a count how many licenses are available for use. It would be very useful to be able to monitor how many licenses are available so one could proactively be notified that they are about to run out. If this ability is already available in the WMI provider it would be nice to see an example of this in action.

    Thank you,


  • How is the "automatically detect gateway server settings" option in the client supposed to work?  What needs to be configured?

    thanks.. Jeff

  • This refers to a group policy setting.  See the URL I link to for the list of GPs.  Look for "TS Gateway".


  • The admin needs to configure the TSG Group Policy settings under "Local Computer Policy\User Configuration\Administrative Templates\Windows Components\Terminal Services\TS Gateway". The client will then pick up GP settings.

  • Thats really great stuff, keep it on Cheers

Page 1 of 1 (7 items)

Terminal Server Licensing/Gateway WMI Providers