I have two Windows 2003 servers, a primary that runs both a database and intranet, and a secondary that runs terminal services for a custom 3rd party application that accesses the database on the primary server.
Every once in a while, the 3rd party app ceases to operate normally, and it will not function until the terminal server is rebooted. This invariably happens when there is no one around to restart the terminal server.
What I'd like to do is to give my intranet users the ability to reboot the terminal server from a web page. I've created a form on an ASP page that attempts to a batch file. The batch file contains the SHUTDOWN command ("c:\windows\system32\shutdown.exe -s -m \\ts-server -t 30 -f"), but I can't get the VBScript inside the web page to execute the batch file. The batch file itself executes properly if run from the command line.
I'm not even sure if this is the best approach, but has anyone had success or attempted to do this themselves? Any guidance or advice is appreciated.
Every once in a while, the 3rd party app ceases to operate normally, and it will not function until the terminal server is rebooted. This invariably happens when there is no one around to restart the terminal server.
What I'd like to do is to give my intranet users the ability to reboot the terminal server from a web page. I've created a form on an ASP page that attempts to a batch file. The batch file contains the SHUTDOWN command ("c:\windows\system32\shutdown.exe -s -m \\ts-server -t 30 -f"), but I can't get the VBScript inside the web page to execute the batch file. The batch file itself executes properly if run from the command line.
I'm not even sure if this is the best approach, but has anyone had success or attempted to do this themselves? Any guidance or advice is appreciated.