Auto reboot windows sever 2003 [resolved]
Hi I have a server on a domain, which runs a crummy application. Basically becuse of this application we have to maually reboot the server every night, and then log on again.
Is it possible to automate this, as the application we run isn't a service the server not only has to reboot itself but also automatically log itself on.
Is this possible?
Re: Auto reboot windows sever 2003
You can have the server autologon by following the instructions here.
As for the auto restart, you can set up a scheduled task to run at midnight every day which executes the following command:
"%windir%\System32\shutdown.exe -f -t 00"
Your third option could of course be to get rid of the "crummy" application and replace it with a better one ;)
Re: Auto reboot windows sever 2003
I've found that a scheduled restart doesn't work on the local machine, instead you can schedule it on another server and use shutdown's -m \\MachineName parameter to restart a remote machine.
Re: Auto reboot windows sever 2003
Cool looks good, is hometime now but will give it a go tommorow.
Re: Auto reboot windows sever 2003
Thanks finnaly got around to this and it works a treat.