The Easy Way To Recover SharePoint Farm Password In SharePoint 2013 or 2010

Introduction:
Here’s something new (NOT). The guy who set up our SharePoint has left. So now, here I am trying to administer this thing and I find out that no one else knows the password. Efforts to contact the previous guy have been rather unsuccessful. So here’s the question – How do I get in there?

Here is the solution. We can achieve this with the help of Command Prompt/PowerShell window and IIS Manager. Before this, using a local Admin account, we need to sign into the SharePoint Server whose Central Admin password we intend to recover.

Read some SharePoint 2013 tutorials on:

IIS runs Central Admin under the Farm Account credentials. Similarly, Web applications and Service applications run in App Pools with their own credentials.

In the IIS Manager, we find out the name of the Application Pool whose password we need to recover, as shown below.

SharePoint recover farm password.png
SharePoint recover farm password.png

For Central Admin, that would be,
– SharePoint Central Administration v4
But, we can also recover the passwords for other Application Pools, e.g,
– SharePoint – 80
– e4b4b94050634ad2863ad7d7d17c3a17
Next, in the command prompt (or PowerShell), you can use the IIS appcmd.exe to request the Password field from the ProcessModel section of the applicationHost.config file. For example, in PowerShell (on ONE LINE!):

1. SharePoint Central Administration v4

cmd.exe /c $env:windir\system32\inetsrv\appcmd.exe list apppool “SharePoint Central Administration v4” /text:ProcessModel.Password
An example run is shown below.


SharePoint 2013 recover farm password.png
SharePoint 2013 recover farm password.png

2. SharePoint – 80

cmd.exe /c $env:windir\system32\inetsrv\appcmd.exe list apppool “SharePoint -80” /text:ProcessModel.Password
An example run is shown below.

SharePoint 2016 recover farm password.png
SharePoint 2016 recover farm password.png

3. e4b4b94050634ad2863ad7d7d17c3a17


cmd.exe /c $env:windir\system32\inetsrv\appcmd.exe list apppool “e4b4b94050634ad2863ad7d7d17c3a1” /text:ProcessModel.Password
An example run is shown below.

SharePoint 2016 recover farm password powershell.png
SharePoint 2016 recover farm password powershell.png

Hope this helps everyone! Enjoy.


You May Also like the Following SharePoint Online Tutorials:

About Sagar Pardeshi

I am Developer working on Microsoft Technologies for the past 6+years. I am very much passionate about programming and my core skills are SharePoint, ASP.NET & C#,Jquery,Javascript,REST. I am running this blog to share my experience & learning with the community I am an MCP, MCTS .NET & Sharepoint 2010, MCPD Sharepoint 2010, and MCSD HTML 5,Sharepoint 2013 Core Solutions. I am currently working on Sharepoint 2010, MOSS 2007, Sharepoint 2013,Sharepoint 2013 App Dev, C#, ASP.NET, and SQL Server 2008.

View all posts by Sagar Pardeshi →

Leave a Reply