Terminal Services Group Rights

Posted on 2005-05-06
Medium Priority
Last Modified: 2013-11-21
In Windows Server 2003 Standard, is there a way to assign similar terminal services profile to a Group?

For instance, there are several users for whom I want TS to launch a program upon connection. I do not want to configure this individually for each user.
Question by:scptech
  • 2
LVL 15

Accepted Solution

scampgb earned 300 total points
ID: 13950702
Hi scptech,
One way of achieving this would be to update your login script(s) to launch the application, if the user is a member of a specific group.

Here's a sample bit of VBS code to get you started:
Option Explicit
Dim objNetwork, objUser, CurrentUser,WshShell
Dim strGroup

Const TS_launch_Group = "cn=TS_launch_group"

Set objNetwork = CreateObject("WScript.Network")
' Forces script to skip errors (rem below line to see errors)
'on error resume next

Set objUser = CreateObject("ADSystemInfo")
Set CurrentUser = GetObject("LDAP://" & objUser.UserName)
strGroup = LCase(Join(CurrentUser.MemberOf))

if InStr(strGroup, TS_launch_Group) then
  Set WshShell = WScript.CreateObject("WScript.Shell")
end if

Please note that I haven't been able to test this, but it ought to work.  Much of the code was taken from http://www.experts-exchange.com/Operating_Systems/Windows_Server_2003/Q_20975263.html#11005358

Does that help?
LVL 25

Assisted Solution

by:Ron Malmstead
Ron Malmstead earned 200 total points
ID: 13953012
Create a securit group in AD...e.g. Terminal Service App Group
Set the permissions on the program folder so that only the Terminal Service App group and Administrator has access.
Create a batch file with the follwing contents and place it in your c:\documents and settings\all users\start menu\startup
or...you can place this in your domain logon script.


if %username% == Administrator exit
if exist "c:\program files\program folder\program.exe" "c:\program files\program folder\program.exe"


Since only users in this group can see the file....the script will only launch the app for them.
LVL 25

Expert Comment

by:Ron Malmstead
ID: 13953015

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
This article explains the fundamentals of industrial networking which ultimately is the backbone network which is providing communications for process devices like robots and other not so interesting stuff.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question