SRCDS Steam group

how to reboot your windowsserver automaticly
Running a low mem server?
Getting laggy after e few days of up-time?
here´s a easy solution: reboot your server every night, fully automatically.

This tip applies to Win2k, Win2kserver, vin2k3server and WinXP

Make a textfile.
put the text below in it.
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Shutdown)}!\\" & _
strComputer & "\root\cimv2")

Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")

For Each objOperatingSystem in colOperatingSystems
rename the textfile to reboot.vbs
put the reboot.vbs in your c:\windows\system32 if your running winXP.
c:\WINNT\system32 if your´e running win2k or win2k3

Now, go to the controllpanel. start the windows scheduler. Add new task.
Browse to "reboot.vbs" in your system32 folder, and set the task to run at the preffered time. (like 04:00 in the morning) And you´re all set!

Your server/computer will now reboot every night.

Use the srcds_watcher-script to start your hlds server automatically with windows. (Found in Tutorials) Put a shortcut to that script in your autostart, together with other applications like ventrilo and so on.

For more windows scripts, visit:

windows scriptcenter:


#rpe.swe @ quakenet
what if you have 4 servers on the 1 machine still the same?
wouldnt be a problem.
Just make 4 different srcds_watcher scripts. (see tutorials) One for each server and put shortcuts to them in autostart.

Then just make one windowsrestartscript.

cant se why it shouldnt work.

Forum Jump:

Users browsing this thread: 1 Guest(s)