Clear the SharePoint Configuration cache

To clear the config cache on the farm, follow these steps:

  • Stop the OWSTIMER service on ALL of the MOSS servers in the farm.
  • On the Index server, navigate to:

Server 2008/2012 location: Drive:\ProgramData\Microsoft\SharePoint\Config\GUID and delete all the XML files from the directory.

  • Delete all the XML file in the directory. NOTE: ONLY THE XML FILES, NOT THE .INI FILE.
  • Open the cache.ini with Notepad and reset the number to 1. Save and close the file.
  • Start the OWSTIMER service on the Index server and wait for XML files to begin to reappear in the directory.
  • After you see XML files appearing on the Index server, repeat steps 2, 3 & 4 on each query server, waiting for XML files to appear before moving to subsequent servers.
  • After all of the query servers have all been cleared and new .xml files have been generated, proceed to the WFE and Application servers in the farm, following steps 2, 3, 4 and 5 for each remaining server.

Distributed Cache Service – Change Account

When AppFabric is installed as part of the SharePoint pre-requisites, it is configured to run under the credentials of the server farm. This is not recommended, and will eventually trigger a violation of a Health Analyzer Rule. To avoid this, you can change the account used by the Distributed Cache service. In the example below, we’re retrieving a managed account that has already been registered with our farm, called “CONTOSO\my_managed_account” with the Get-SPManagedAccount cmdlet. We then set that as the ManagedAccount property of the ProcessIdentity object of the Distributed Cache (“AppFabricCachingService”) SPService.

$farm = Get-SPFarm
$cacheService = $farm.Services | where {$_.Name -eq “AppFabricCachingService”}
$accnt = Get-SPManagedAccount -Identity domain\ManagedAccount
$cacheService.ProcessIdentity.CurrentIdentityType = “SpecificUser”
$cacheService.ProcessIdentity.ManagedAccount = $accnt

Error when you click on “Manage Shared Schedules” under Reporting Services

Try the following if you are using SharePoint 2013 with SSRS 2012 in SharePoint Integrated Mode.

– Launch Central Administration
– Click on Application Management
– Click on Manage Services Applications under Services Application
– Select the Reporting Services Service Application
– Click Manage – Provision Subscriptions and Alerts
– Click ‘Download Script’
– Copy the script
– Log in to your SQL Server and Launch SQL Server Management Studio
– Click ‘New Query’
– Paste the script that you previously copied
– Click on Execute


SharePoint 2013: How to Hide the Newsfeed, Skydrive and Sites Buttons

– Open the master page of your site in SharePoint Designer
– Check Out – Edit File in Advanced Mode

– Search for ‘SuiteLinksDelegate’  and comment the following line.
<SharePoint:DelegateControl ID=”ID_SuiteLinksDelegate” ControlId=”SuiteLinksDelegate” runat=”server” />

This is how it looks after is commented.

<!–  <SharePoint:DelegateControl ID=”ID_SuiteLinksDelegate” ControlId=”SuiteLinksDelegate” runat=”server” /> –>

– Save the Master Page – Check In – Publish a Major Version – OK





How to display original images in SlideShow web part

1- Save below JavaScript code to file, for example in SlideshowObjectInitializer.txt and upload it to SiteAssets Library
2- Add CEWP on page where Slideshow web part is located and in the Content Editor tool pane, under Content Link, type /SiteAssets/SlideshowObjectInitializer.txt.

For more information, please check the blogs below.


<script type=”text/javascript”>

function SlideshowObjectInitializer() {

ShowPic = (function(ShowPicOrig) {       return function() {

var ssObj = arguments[0];  //SlideShow object            var curPicIdx=ssObj.index; //current picture index

ShowPicOrig.apply(this, arguments); //call original ShowPic

//apply some changes to display original picture in SlideShow control            ssObj.image.src = ssObj.linkArray[curPicIdx]; //display original image instead of web image            //change picture & container size to auto instead of fixed (by default web image size is used)              ssObj.image.setAttribute(‘height’,’100%’);              ssObj.image.setAttribute(‘width’,’100%’);              var cell = ssObj.cell;     = ‘auto’;     = ‘auto’;     = ”;              var pcell = ssObj.cell.parentNode;   = ‘auto’;     = ‘auto’;       };   })(ShowPic);


ExecuteOrDelayUntilScriptLoaded(SlideshowObjectInitializer, ‘imglib.js’);


How to change the Central Administration URL desktop icon link

If you happen to run the ‘SharePoint 2013 Products Configuration Wizard’ and change the name of the server where Central Administration was initially installed. Everything will be ok, but the link will still be pointing to the previous server. Below are the steps to update the URL.

– Open the registry by running regedt32 from command prompt
– Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS
– Right Click on ‘CentralAdministrationURL’ and Click on Modify
– Change the name of the server and make sure to add ‘/default.aspx’ at the end
– Click OK

You need to do the same on other Front End servers if Central Administration is running fron more than one server.

Remove the left navigation menu in SharePoint 2013

There are a few ways to do this.

This will work, but if you also want to get rid of the space this is not going to be a solution because “Site Contents” will be still on. Check my blog for information about hiding “Site Contents”.

– Open the  site in SharePoint Designer
– Uncheck Display Quick Launch under Settings
– Save

Even if you hide “Site Contents”, the space won’t be deleted. Try the following to delete the space used for the Left Navigation Menu if that is what you want.

Add the following code to your existing .css file if you are using one or add the code to a Script Editor webpart.

.ms-core-navigation { DISPLAY: none }
#contentBox { margin-left: 0px }

When you delete the left navigation menu, the web parts will be moved to the left. Modify the value of the margin-left if you want to add space between the left margin and the web part.

Warning: Page has expired

Below is what I did to resolve the issue describe here. I happens when you click Back to return to a web page.

Error Message:
Warning Page has Expired
The page you requested was created using information you submitted in a form. This page is no longer available.

– Open Internet Explorer
– Click on  Tools – Internet Options – Advanced
– Scroll down and look for Security
– Check “Do not save encrypted pages top disk”