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
objOperatingSystem.Reboot()
Next
-----------------------------------------------
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:
http://www.microsoft.com/technet/scriptcenter/default.mspx
GL!
Ninjapimp
#rpe.swe @ quakenet
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
objOperatingSystem.Reboot()
Next
-----------------------------------------------
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:
http://www.microsoft.com/technet/scriptcenter/default.mspx
GL!
Ninjapimp
#rpe.swe @ quakenet