Restart File discussed at Triad SBS Group Meeting
OK as promised at tonight’s Triad SBS Group Meeting, here is the contents of the file I use to restart my SBS servers.
Use at you own risk, the are no guarantees or assurances made.
All I can tell you is, I have yet to have it fail me.
open notepad.exe
Paste these lines into it.
@echo off
@echo “Gonna Reboot the Server Boss”
net stop “Microsoft Exchange Management”
net stop “Microsoft Exchange Routing Engine”
net stop “Network News Transfer Protocol (NNTP)”
net stop “Simple Mail Transfer Protocol (SMTP)”
net stop “Microsoft CRM-Exchange E-Mail Router Service”
net stop “Microsoft Exchange Information Store”
net stop “Microsoft Exchange System Attendant”
shutdown -r -t 05 -f
Save the file as restartme.cmd or “whatever makes you happy.cmd”
If you don’t have CRM you can rem out that line, if you like. Otherwise it will just show an error and continue on.
When you want to reboot the server just double click the file.
If you are installing patches remotely, schedule the file to run 30 minutes past when you think you will be done, if you get locked out or RRAS hangs, the server will reboot and save you a drive.
Also I would be remiss if I didn’t mention, that Charlie Russell wrote a much cleaner script which Susan posted HERE, it is much prettier than my quick and dirty little file.