At times we need to reboot the server periodically and with least human effort. The best part is that windows has inbuilt tool called the scheduled tasks with which we can perform a task without human intervention.
Script.
Set WSHShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "C:\WINDOWS\system32\shutdown.exe -r -t 0"
Save this as a VBS extension file and point this VBS file to the scheduled tasks.
Script.
Set WSHShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "C:\WINDOWS\system32\shutdown.exe -r -t 0"
Save this as a VBS extension file and point this VBS file to the scheduled tasks.