|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Computer Tool
Join Date: May 1999
Location: Springfield, Missouri
Posts: 1,538
|
Windows 2000 server scheduled reboot
Trying to get a batch file or some way to reboot a Win2k server every 2, 3 days during off hours. I have tried a simple batch file in the task scheduler but as far as I can tell it is not working. Batch file is called reboot.bat and contains only the following so maybe I am missing something.
Code:
%windir%\System32\shutdown.exe -r -t 5 needing specifc instructions if you can please. |
|
|
|
|
|
#2 |
|
Ride 'em Cowboy
Join Date: Dec 1999
Location: Dallas, Tx
Posts: 9,109
|
Try adding the / in the two spots below.
%windir%\System32\shutdown.exe /-r /-t 5 and or try: C:\Windows\System32\Shutdown.exe -r -t 30 (30 for thirty seconds)
__________________
Stand Up 2 Cancer - SU2C |
|
|
|
|
|
#3 |
|
Come in Ray...
Join Date: Sep 2004
Posts: 1,668
|
The Windows 2000 tool has a prompt you must confirm. Use the /y switch to automatically answer yes.
Code:
shutdown /L /R /Y |
|
|
|
|
|
#4 |
|
Computer Tool
Join Date: May 1999
Location: Springfield, Missouri
Posts: 1,538
|
I tried both of your ideas and neither one of them work either. Anyone else?
Update: Here is what does work. Code:
%windir%\System32\shutdown.exe /L /R /T /Y /C Last edited by K A Hall; 10-09-2008 at 06:34 PM. Reason: Update |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|