Search Wiki:
Resource Page Description
**As of version 2.0, I have migrated this project to http://www.codeplex.com/SPWakeUp/Wiki/View.aspx?title=Home Please check this new site for future versions.**

This is a simple application that touches each site and site collection on a Sharepoint server to rebuild the IIS cache.

Normally IIS discards its cache overnight, which means that each Sharepoint site must be rebuilt the first time it is accessed. This can be very slow. This script will seek out every site and site collection on a sharepoint server, going as deep as you like, and send them an HTTP request, so that the site remains in cache.

This project was inspired by the Warm Up script I found at: http://blogs.msdn.com/joelo/archive/2006/08/13/697044.aspx
For information about how the script was developed, please see my blog: http://akennel.blogspot.com/

The application consists of the program file, spwakeup.exe and an optional configuration file, sites.conf.
You must run this application on a machine that has WSS or MOSS installed. The script uses STSADM.exe, so you need to have it in your Path. STSADM.exe is usually found in: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Bin.
If you want to wakeup a single site, you do not need sites.conf and it can be safely deleted. If you need to wake up mulitple sites, list them in sites.conf, each on their own line.

The app recognizes 3 option switches:
-depth:X --specifies how many levels deep to search for sites. If you do not set anything, the default value of 3 is used.
-site:XXX.XXX -- specifies the starting URL. If you do not set anything, the app looks for sites.conf, and uses the sites listed there. If sites.conf does not exist, the default URL http://localhost is used.
-log:Filename -- specifies a log file to record the results. If a file is not specified, the log will be displayed on the console.

Examples:
spwakeup.exe
If the file sites.conf does not exist, runs against http://localhost. Uses search level of 3. Displays log results on console.

spwakeup.exe -depth:5 -log:c:\log.txt -site:http://portal.mycompany.com
Runs against http://portal.mycompany.com. Uses a search level of 5. Stores results in c:\log.txt.
Last edited Apr 11 2008 at 5:41 PM  by akennel, version 10
Updating...
Page view tracker