OneScript Team Blog

A world of automation script samples based on IT Pros' real-world tasks

[Script of Mar. 18] PowerShell Scripts to Warm-Up Applications in Microsoft SharePoint Server 2010

[Script of Mar. 18] PowerShell Scripts to Warm-Up Applications in Microsoft SharePoint Server 2010

  • Comments 2
  • Likes

Script Download: WarmupSiteApplication.zip
http://gallery.technet.microsoft.com/scriptcenter/PowerShell-to-Warm-Up-0988dd61

This script could be used to warm-up site application.

Application warm-up is requested to improve customer experience for the sites taking long time on initialization after application pool recycling.

image image
image

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Here is the script that I use.  The benefit is that is uses the SharePoint snapin to determine what sites are available in the farm and hits each one to warm it up.  New sites will automatically be warmed up.  I schedule it on one of the web front end servers in the farm.

    Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction:SilentlyContinue

    function Get-WebPage

    {

    param(

    [string]$url

    )

    Write-Host "Getting $url"

    $wc = New-Object Net.Webclient

    $wc.Credentials = [System.Net.CredentialCache]::DefaultCredentials

    return $wc.DownloadString($url);

    }

    Get-SPWebApplication -IncludeCentralAdministration | %{ Get-SPSite $_.Url } | Get-SPWeb | %{

       $null = Get-WebPage -url $_.Url

    $_.Lists | ?{ -not $_.Hidden } | %{

           Get-WebPage "$($_.ParentWeb.Site.Url)$($_.DefaultViewUrl)" | Out-Null

    }

    }

  • Thanks for the great info. I really loved this. I would like to apprentice at the same time as you amend your web site, how could i subscribe for a blog site?
    For more info on showbox please refer below sites:
    http://showboxandroids.com/showbox-apk/
    http://showboxappandroid.com/
    Latest version of Showbox App download for all android smart phones and tablets. http://movieboxappdownloads.com/ - It’s just 2 MB file you can easily get it on your android device without much trouble. Showbox app was well designed application for android to watch movies and TV shows, Cartoons and many more such things on your smartphone.
    For showbox on iOS (iPhone/iPad), please read below articles:
    http://showboxappk.com/showbox-for-ipad-download/
    http://showboxappk.com/showbox-for-iphone/
    Showbox for PC articles:
    http://showboxandroids.com/showbox-for-pc/
    http://showboxappandroid.com/showbox-for-pc-download/
    http://showboxforpcs.com/
    There are countless for PC clients as it is essentially easy to understand, simple to introduce, gives continuous administration, effectively reasonable. it is accessible at completely free of expense i.e., there will be no establishment charges and after establishment it doesn't charge cash for watching films and recordings. http://www.showboxforipad.org/showbox-apk/ Not simply watching, it likewise offers alternative to download recordings and motion pictures. The accompanying are the strides that are to be taken after to introduce Showbox application on Android. The above all else thing to be done is, go to the Security Settings on your Android telephone, Scroll down and tap on 'Obscure sources'.
    http://www.showboxforipad.org/
    http://movieboxappdownloads.com/moviebox-apk-android/
    http://movieboxappdownloads.com/download-moviebox-pc/
    Movie Box, an esteemed movies application in which you can find stacks of programs and films. The guide is given here to download Movie Box app to Android and to Apple iOS 9.0.2, iOS 8.4/8.3 and also for the lower versions without Jailbreak.
    http://showboxforiphone.org/
    Please do login to Showbox application with the help of Ymail. You can login in Ymail from here - http://ymaillogintips.com/
    Sign Up & Do registration for latest movies on Showbox application