When running a PC 24/7, Windows will eventually hang up. It's rarely easy to identify why the PC freezes, locks up, or just "acts weird." Luckily, the simple act of rebooting the computer usually solves many of these problems.
The process is relatively simple: Write a basic batch file to reboot the computer in Notepad, and then set an alarm inside Windows to run the batch file automatically.
Create a new folder under the "C" drive; c:\BatchFiles
Start Notepad (or your favorite text editor) If you've never used Notepad before;
Hold the windows key and hit the "R" key.
in the "Run" window that just appeared by your Windows Start button, type "Notepad" and hit enter.
Type the following lines exactly as shown, into the Notepad window:
@ECHO OFF
C:\WINDOWS\SYSTEM32\SHUTDOWN /r /t 15
REM THE /r sets this action as a Restart
REM The /t 15 means Windows will show
REM a 15-second countdown timer, and then restart
Save the file, but change the "Save as Type" dropdown to All files (*.*)
While in the Save As dialog box, browse to C:\BatchFiles (you created this location in Step 1 above)
Set the filename to "WeeklyTasks.bat"
Verify this folder exists, and the file is written exactly as shown.
Test the file. Save all other documents, because if it works... your computer will reboot!
Using Windows explorer, browse to the folder you created "BatchFiles"
Double click the file "WeeklyTasks.bat"
The batchfile should trigger an unattended restart.
From the windows desktop, find the "This PC" icon and Right-Click -> select Manage
Spill open the Task Scheduler collection
Spill open the Task Scheduler Library
Right click on the "Task Scheduler Library" folder icon -> select "New Folder"
Name the new folder <your callsign> (I used N1SFT)
Select your new folder, and in the right pane right click -> Create Basic Task and walk the following steps;
Name = Reboot, Click Next
Trigger = Weekly, Click Next
Start = Pick the next Saturday in the calendar, and select 3AM
Recur = Recur every 1 weeks on Saturday, click Next
Action = Start a program
Program/Script = Browse for the Batchfile you just wrote and named it "WeeklyTasks.bat"
Set the Start in field to: c:\BatchFiles
Click next
On the Finish page... check ON "open the properties dialog for this task when I click Finish"
Click Finish
Right-click the new task -> Run
A. This batchfile and autotrigger mechanism require that the Computer be running, and windows must be "logged on"
B. You'll need to be sure that all programs that you need, must be set to auto-start. Wires-X for example, has that option to auto-start if you right-click the system tray icon.
11/18/2022 : Initial upload of the text of this tutorial. We will develop screenshots and also a Video to assist in this process soon.