The Easy Way To Recover SharePoint Farm Password

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 in to the SharePoint Server whose Central Admin password we intend to recover.

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

You may like following SharePoint tutorials:

This SharePoint tutorial, we learned how to recover SharePoint Farm Password.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

  • >