Tired of waiting for SharePoint pages to load? Want something easy to support? That works on all versions? This warmup script is for you!
PowerShell
Latest commit 2cf9518 Feb 6, 2017 @spjeff committed on GitHub Merge pull request #9 from lafe/master
Additional parameters
Permalink
Failed to load latest commit information.
doc Doc Apr 13, 2016
README.md Doc Jul 7, 2016
SPBestWarmUp.ps1 Merge branch 'master' into master Feb 6, 2017
SPBestWarmUp.xml Added empty XML definition for warmup script Jan 25, 2017

README.md

Description

Tired of waiting for SharePoint pages to load? Want something easy to support? That works on all versions? This warmup script is for you!

I used several different warmup scripts. All worked OK but each seemed to lack features so I decided to create a new one. Hope you find it useful too.

Key Features

  • SharePoint 2010, 2013, and 2016
  • Custom page URLs
  • Detect SP Web Application URLs
  • Detect Host Named Site Collection URLs
  • Detects Service Application URLs
  • Detects Project Server PWA
  • Download full page resources (JS, images) not just HTML
  • Download with Invoke-WebRequest
  • Great for ECM websites to populate blob cache
  • Warm up Central Admin - home, health rules, web apps for a faster admin experience!
  • Warm up Central Admin - all Manage Service Application pages.
  • Display W3WP total #MB before and after
  • Excellent blog post by @hd_ka at http://blog.greenbrain.de/2014/10/fire-up-those-caches.html

Quick Start

  • Download SPBestWarmup.ps1
  • Copy SPBestWarmup.ps1 to one SharePoint web front end (WFE)
  • Run SPBestWarmup.ps1 -f to install farm wide. Creates Task Scheduler job on every machine.
  • Run SPBestWarmup.ps1 -i to install locally. Creates Task Scheduler job on the local machine.
  • Run SPBestWarmup.ps1 -u to uninstall farm wide. Deletes any Task Scheduler job named "SPBestWarmup"
  • Sit back and enjoy!

Screenshots

  • Install farm wide image

  • Manual run image

  • Manual run with custom URL parameter image

Admin Tip

  • After reboot run this command to manually trigger the job and warm up IIS SCHTASKS /RUN /TN "SPBestWarmup"

Custom URLs

  • Use the -url paramter to add custom URLs from the command line.
  • Rename Central Admin site title and edit lines 331-345 to add custom URLs within the script. Good for lifecycle (dev, test, prod).

Permission

Contact

Please drop a line to @spjeff or spjeff@spjeff.com Thanks! =)

image

License

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.