Saturday 5 November 2016

Reset BLOB Cache

Today I am providing the Power Shell Script that will reset the BLOB Cache of the wfe server. 
Sometimes BLOB cache stop syncing with database due to this reason you will not able to recognize the changes (if any Change is made) in the file that are enabled for blob cache. In that case we have to flush the BLOB Cache. This script is needed to be run on all the wfe servers where ever the web application hosting.
Inputs
Web Application URL - URL of the web application for which you are going to reset the blob cache

Outputs
This script will reset the BLOB cache of the given web application.

Example-
.\scriptname.ps1
.\scriptname.ps1 | out-file “FilePath\Filename.txt”

Dependencies –
For executing this script, User who is going to flush the BLOB cache must have securityadmin and dbowner rights on SQL and database.
User should also be local administrator on the server where this script will be executed.
User should have Shell Admin rights to run the scripts.
Run Management Shell as an Administrator.

How to execute -
Copy this script and paste in Note pad.
Save this file as .ps1.
Run this script in SharePoint Management Shell. You can run this script in PowerShell as well.
Follow on screen instructions.
FOR ANY HELP ON THIS SCRIPT USE "GET-HELP .\SCRIPTNAME.PS1 --FULL" AFTER SAVING THIS FILE.


Go to above link to get the script.

No comments:

Post a Comment