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:-

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

No Comments