Configuring Terminal Services Gateway using WMI
Wednesday, 01 July 2009 by Michel Roth
This article is about WMI and Terminal Services Gateway. You can find a way to manage your TS Gateway server remotely by using WMI. Here I describe two methods, to add and to remove a Resource Authorization Policy (RAP).

All code blocks are picked from proof-of-concept demo and they do not represent "in production" state of the code.

Background Employees that are away from the office premises are in constant need of accessing internal resources. Letting people to access their own office computer gives most familiar feeling while being away. Opening such a connections from the Internet some measures to secure, manage and handle these connection were needed. To do this without burdening the administrators, an automatic service that does the Terminal Services Gateway configuration for the end-user was developed. This article shows a way to manage one part of TS Gateway server configuration.   Using the Code System.Management namespace needs to be added before the code works. Also the methods expect you to have a user gorup on your server. Name of the group in this case is 'RAP_TEST'. If you are part of a domain or if you have an active directory service running, you can use 'DOMAINUserGroup' like groups as well.

Source: http://www.dabcc.com/article.aspx?id=11002


Related Items:

Terminal Services Gateway Overview (29 February 2008)
Single Credential Prompt For TS Gateway Server And Terminal Server (6 May 2007)
RD Gateway deployment in a perimeter network & Firewall rules (3 August 2009)
Terminal Server Licensing/Gateway WMI Providers (18 September 2006)
An Overview Of Longhorn Server’s Terminal Service Gateway (Part 4) (13 September 2006)
Windows 2008 R2 Remote Desktop Services (7 December 2009)
Forcing RDP Clients to use TS Gateway in TS Web Access (2 September 2008)
An Overview of Longhorn Server’s Terminal Service Gateway (Part 5) (27 September 2006)
Microsoft Windows Server "Longhorn" Beta 2 Terminal Services Gateway And Remote Programs V (15 January 2007)
Access Gateway Traffic Flow Diagram (13 September 2006)
Comments (0)add feed
password
 

busy