Monday, 19 December 2016

Steps to reset your SharePoint Passphrase

Forget your passphrase don't worry. Powershell will come to your rescue.

Why we need passphrase, it is required when we are adding a new server to our farm.

If you don't know it then you cannot add server to your farm

Below PowerShell can help you setting up a new passphrase for your farm.

$passpharse=ConvertTo-SecureString - String "SP2010Password" -asPlainText -Force
Set-SPPassPhrase -PassPhrase $passphrase -Confirm

Thanks to Stewart Wainaina for sharing this

Happy SharePointing :)

How to do Index Reset in SharePoint.

Below are the steps to do an Index Reset thru GUI


1. Open Central Administration > Manage Service Application.

2. Click on Search Service Application.

3. On Search Administration Page on left side under Crawling you can see Index reset option.

4. Click on it, it will again ask for confirmation. Click on Reset Now.

5. It will take sometime around 2 to 5 minutes.

You are done with index reset and now you can start full crawl on your content sources.

If you want Powershell to do an index reset. Run below command.


Parameters true is to disable alerts and ignore timeout error.

Happy SharePointing :)

Wednesday, 14 December 2016

How to Remove "Revert to template" warning message in SharePoint


Sometimes you see a warning message on you site saying.
"The current page has been customized from its template. Revert to template”

There are many option to resolve.I will share with you then one, i personally like.


1. Go to the page where you are getting the warning message.

2. Edit the page.

3.  Go to insert tab and click Web Part.

4. From Media and Content categories, Select Script Editor and Click ADD.

5. Now click on edit the web part and click on Edit Snippet.

 6. Insert the below line of code to hide the warning message

    #DeltaPageStatusBar { displaynone; }

7. Click Apply and OK on Web Part properties.

Your warning message will be gone.

Happy SharePointing :)


Friday, 9 December 2016

Configure People Picker for a domain with One way trust

This post will help you Configure People Picker  for a domain with One way trust.

If SharePoint is installed on a domain that has a one-way trust with other domains and you want the People Picker on SharePoint 2013 to show users and groups from those other domains, you have to use the STSADM command to configure the People Picker.

This is tested on SharePoint 2010,2013

So lets get started :)

Step 1

You have to set an encryption key on all web front end servers in your farm so that the stored credentials can be encrypted:

STSADM.exe -o setapppassword -password Key

where "Key" is any value.

STSADM.exe -o setapppassword -password Password11

Note : For two way trust no need for setting an encryption key,means you can skip step 1 for a domain with two way trust.

Step 2

You have to give SharePoint the credentials to authenticate against the remote domain and tell it which domain you would like to authenticate against. You only have to run this on one of your SharePoint web servers

STSADM.exe -o setproperty -propertyname peoplepicker-searchadforests -propertyvalue <Valid list of domains> -url <URL of the Web application>

where <Valid list of domains> is in the following format:


For example, a sample command might look like this:

STSADM.exe -o setproperty -propertyname peoplepicker-searchadforests -propertyvalue ",test\user,P@ssw0rd" -url

You can add more than one domain. Just delimit them with a semicolon and a space. For example:

SSTSADM.exe -o setproperty -propertyname peoplepicker-searchadforests -propertyvalue ",test\user,P@ssw0rd;,test2\user,P@ssw0rd" -url

Step 3

Run below cmd to test if value has been set for people picker or not.

STSADM.exe -o getproperty -pn peoplepicker-searchadforests -url

Happy Sharepointing :)

PowerShell to Change the Retention period of Usage Health and Data.

Powershell is a PowerFull tool and it always come to save us all with any requirements we have.

This post on how to change the retention period of Usage Health and Data.

Lets get started :)

This applies to SharePoint 2013 and 2016

First we check the Usage details using below Powershell Cmd.


Now we change the retention period from 7 to 8 using below Powershell cmd

Get-SPUsageDefinition | ForEach-Object {Set-SPUsageDefinition -Identity $ -DaysRetained 8}

To confirm the change we will run Get-SPUsageDefinition cmd again.


Happy SharePointing :)

Failed to Register SharePoint Service in PSConfig Error

While running the PSconfig it got failed when it was trying to Register the SharePoint Services.

This happens only on Stand Alone servers.


Open up registry
Browse to 
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\15\LauncherSettings
Create a key : DWORD
Name :  AcknowledgedRunningOnAppServer
Value : 1 

Now go to below registry 
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\15\LoadBalancerSettings
Create a key : DWORD
Name :  AcknowledgedRunningOnAppServer
Value : 1 

Now re-run the PSconfig and all will be good now.

Happy SharePointing :)

Friday, 2 December 2016

Save Site as template action is not supported on this site


Something went wrong. The "Save Site as template" action is not supported on this site

Reason for the Error:

When you try to save a publishing site as site template then you get the following error message
The “Save site as template” action is not supported on this site.
Even you deactivate the publishing feature, you still face the error.


Below PowerShell will update the Single property page value in the SP Web object.

$web = Get-SPWeb
$web.AllProperties[“SaveSiteAsTemplateEnabled”] = “true”

It can also be done via SharePoint desginer but i always like PowerShell

Happy Sharepointing :)

Thursday, 1 December 2016

List of Site Templates in SharePoint

Below are the list of Site Templates in SharePoint.

GLOBAL#0 = Global template
STS#0 = Team Site
STS#1 = Blank Site
STS#2 = Document Workspace
MPS#0 = Basic Meeting Workspace
MPS#1 = Blank Meeting Workspace
MPS#2 = Decision Meeting Workspace
MPS#3 = Social Meeting Workspace
MPS#4 = Multipage Meeting Workspace
CENTRALADMIN#0 = Central Admin Site
WIKI#0 = Wiki Site
BLOG#0 = Blog
BDR#0 = Document Center
OFFILE#0 = Records Center
OFFILE#1 = Records Center
OSRV#0 = Shared Services Administration Site
SPS#0 = SharePoint Portal Server Site
SPSPERS#0 = SharePoint Portal Server Personal Space
SPSMSITE#0 = Personalization Site
SPSTOC#0 = Contents area Template
SPSTOPIC#0 = Topic area template
SPSNEWS#0 = News Site
CMSPUBLISHING#0 = Publishing Site
BLANKINTERNET#0 = Publishing Site
BLANKINTERNET#1 = Press Releases Site
BLANKINTERNET#2 = Publishing Site with Workflow
SPSNHOME#0 = News Site SPSSITES#0 = Site Directory
SPSCOMMU#0 = Community area template
SPSPORTAL#0 = Collaboration Portal
SRCHCEN#0 = Search Center with Tabs
PROFILES#0 = Profiles
SRCHCENTERLITE#0 = Search Center
SRCHCENTERLITE#1 = Search Center
SPSBWEB#0 = SharePoint Portal Server BucketWeb Template
VISPRUS#0 = Visio Process Repository

Let me know if i missed out on something. Will add it

Happy SharePointing :)