I have a long story, that ends in a simple question at the bottom, please bear with me:
I have a 2008 R2 Terminal Server in production. 6 of the clients that RDP to this server in our environment simply run a web page that is used for an employee timeclock application.
The SAAS host has a maintenance window on Sunday between 9AM and 11AM every week in which their servers shut down. When this happens the web page goes 404 and needs to be reconnected to the service.
This is a monitor on a wall, connected to a thin client connected to the terminal server. With over 1000 employees using this system for clocking in and out, we want this to be as simple as possible. There is no touch interface, no keyboard, no mouse. Just the card swipe. The system works perfectly until the Sunday maintenance window.
The station automatically launches iexplore.exe as an environment setting in the Active Directory user setup, so if the iexplore.exe closes it logs the session out, and then the thin client re-establishes a new session and launches iexplore fresh again.
What I am looking for is a way to script the automatic shutdown of the iexplore.exe process on the terminal server at 11:00AM every Sunday. I would love to be able to aim the script at the 6 specific usernames associated to the 6 stations, however if necessary, if I can put a script together that kills all iexplore.exe processes on the server regardless of what user has it open would be great too.