I have a Windows 2000 Advanced Server acting as a Terminal Server within an Active Directory Domain. I have set up several users to log on to this TS machine as Local Users and set them up as members of various Local Groups. They log on to the computer, not the domain itself, via Terminal Services.
I want each member of a particular group to call a specific batch file at logon. Currently I can do that by specifying the name of the batch file in the Environment tab of the User properties (in Computer Management, Local Users and Groups). I want to make this simpler by specifying that each TS user runs a single batch file on login, in which is contained a set of switches that runs the appropriate application. I have the batch file set up but when I implement it in Terminal Services Configuration - Environment - Start the following program when the user logs on, if no particular program is called in the batch file (i.e. for an Administrator), the batch file terminates (as it should) but no desktop is displayed -- the user is simply logged off.
How can I assign some applications to run at logon for some groups (and log them off when the application is closed, as occurs when I set a batch file to start on logon as above); but for other groups (Administrators), to display the desktop without automatically logging the user off?
As I mentioned, the users are local to this computer, and I'd prefer not to install them in AD, but if I absolutely must, I would like to know how to go about doing it correctly for the above scenario.