Monday, January 29, 2007

RestartComputer.bat: Restart server

Author: Robert Lawson
Environment: Windows Server, Active Directory
Description: This script will restart a windows server. This is handy to schedule a restart "after hours", after updates have been applied.
Code:
rem file   : RestartComputer.bat
rem purpose: restart computer
rem author : Robert Lawson, 29-Jan-2007
rem /l = logs current user off immediately!
rem /r = restart after shutdown
SHUTDOWN /r /d p:0:0 /c "Monthly restart to fix haning EAS client" /l

No comments: