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.
Invoke-WebRequest
SPBestWarmUp.ps1
SPBestWarmUp.ps1
to one SharePoint web front end (WFE)SPBestWarmUp.ps1 -f
to install farm wide. Creates Task Scheduler job on every machine.SPBestWarmUp.ps1 -i
to install locally. Creates Task Scheduler job on the local machine.SPBestWarmUp.ps1 -u
to uninstall farm wide. Deletes any Task Scheduler job named "SPBestWarmup"Install farm wide
Manual run
Manual run with custom URL parameter
SCHTASKS /RUN /TN "SPBestWarmUp"
-url
paramter to add custom URLs from the command line. 331-345
to add custom URLs within the script. Good for lifecycle (dev, test, prod).Get-SPWebApplication
and Get-SPServer
for detecting URLs to load. http://technet.microsoft.com/en-us/magazine/gg490648.aspx
Please drop a line to @spjeff or spjeff@spjeff.com Thanks! =)
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.