Dana D
asked on
how to write a dos batch file which will be called from startup to reboot windows 2003 terminal server.
I have a windows 2003 server that I want to safely restart every 48 hours. I want to use the start menu to call the batch file because the scheduled tasks feature on the server does not work for some reason.
How do I do this?
How do I do this?
ASKER
As I mentioned task scheduler is broken on the server for some reason so I need a method that uses start menu or some other way.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
choward16980 thank you for you response. But I have a question. If I add this bat file to the windows startup menu does the administrator need to logon before it will initiate the bat file?
Yes. If that's out of the question, you're out of options.
ASKER
ug ok thank you for your help!
You can issue the command remotely from another server.
ASKER
yes I think I will have to do that. thanks!
ASKER
Thank You!
Set a scheduled task to run the following in a batch file:
Open in new window
make sure when you set the scheduled task, you set it to run with an administrator account who has permission to reboot the box.