Usage

The SharePoint Warmup Script is a console application which you can run through the Windows command prompt manually, through PowerShell manually, or can schedule via the Windows Task Scheduler to run automatically on a daily basis (recommended best practice).

Installation

If you do not have the .NET Framework 4.5 installed, install that first. Then, to install SharePoint Warmup Script, simply download the latest release, unzip the contents to any folder on your computer, and you're ready to go.

Configuration

There are two ways to tell SharePoint Warmup Script what URLs you want to warm up.

Option 1 - Command Line

Type in the URLs for SharePoint as command line arguments, separated by spaces. You can enter as many as you want. Example:

SPWarmUp.exe http://sharepoint http://sharepoint/sites/myteam

This example will warm up the two site collections http://sharepoint and http://sharepoint/sites/myteam.

Option 2 - App.config

Open the application configuration file SPWarmUp.exe.config and add your SharePoint site collection URLs into the WarmUpUrls setting.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="SPWarmUp.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<applicationSettings>
<SPWarmUp.Properties.Settings>
<setting name="EnableLogging" serializeAs="String">
<value>False</value>
</setting>
<setting name="WarmUpUrls" serializeAs="Xml">
<value>
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<string>http://sharepoint</string>
<string>http://sharepoint/sites/myteam</string>
</ArrayOfString>
</value>
</setting>
</SPWarmUp.Properties.Settings>
</applicationSettings>
</configuration>

Enable Logging

If you want to enable logging, set the EnableLogging setting to True in the SPWarmUp.exe.config file.

<setting name="EnableLogging" serializeAs="String">
<value>True</value>
</setting>

Warning: Logging and the Windows Task Scheduler

If you want to enable logging, and you're using the Windows Task Scheduler to run SharePoint Warmup Script automatically, make sure you set Start in (optional): to the directory where you unzipped SharePoint Warmup Script.

new-action.png

By default, the Windows Task Scheduler runs tasks from the %SystemRoot%\system32 directory. You don't want log files going into this folder. It won't hurt anything, it's just a bad practice. It's also nice to be able to find the log files after the fact.

Last edited Mar 13, 2016 at 2:26 AM by garbagecollector, version 10