Warm up script for SharePoint 2010
A very common request for all SharePoint 2010 administrators is a warm-up script that could keep the SharePoint warm and in good performance condition. Due to the fact or JIT, SharePoint administrators get various reports (or complaints?) from users about the SharePoint server performance / response time, especially on the first time visit in the morning or if when they have been idle for a while. Few SharePoint warm up scripts / techniques are shown as follows:-
-
Warm-up server: http://blogs.msdn.com/b/joelo/archive/2006/08/13/697044.aspx
-
SharePoint app: http://spwakeup.codeplex.com/
-
PowerShell script: http://nearbaseline.com.au/blog/2010/02/powershell-warmup-script-2/
A very simple VBScript in doing similar thing is as follows:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "iexplore http://www.google.com/", 9 ' The target URL
WScript.Sleep 2000
strComputer = "_COMP_NAME_" ' The computer that run this script
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery _
("SELECT * FROM Win32_Process WHERE Name = 'iexplore.exe'")
For Each objProcess in colProcessList
objProcess.Terminate()
Next