Running a script for a TS user
Posted on 2010-08-13
Goal: When a user logs onto Terminal server, I want a program to run MAXIMIZED. When they exit the program, I want the user to be logged off.
I have created a batch file that I can run by specifying it in the environment tab in the Configuration>Local Users and Groups>Users found in the server manager. The problem is that the batch program opens a command window, then opens the specified program window in a NON maximized window. I can manually maximize it, and I'm good to go, but I don't want the users to do that. Exiting the program allows the batch to continue and does the logoff correctly.
I have learning about the powershell and scripting. My problem using that tool is getting the logoff portion of the script to only execute after the program part has run and done a normal exit. I also suspect that I need to do something about signing to get the script to run.
It seems like I need to go to a lot of trouble to do something that was automatic in Windows Server 2000.