Ever lost your Farm password?
Farm Password Recovery in SharePoint 2010
The other day I was asked by a customer, “hey, would you happen to have a copy of our Farm password anywhere?”
No, I didn’t. And it would kind of be bad if I did!
However, I could recover SPFarm passwords and recover other Application Pool account passwords for them, once Remote Desktopped in to one of the SharePoint servers.
If you want to recover the Farm password, you need to sign in with a Local Administrator account on a server running Central Admin.
If you want to recover one of the Web Application or Service Application passwords, then you need to log in to one of those servers instead.
IIS 7.x runs Central Admin in the context of an Application Pool running under the Farm Account credentials. Similarly, Web Applications and Service Applications run in App Pools with their own credentials.
To recover any of these, start up an Administrative command prompt or PowerShell window, and IIS Manager 7.x.
In IIS Manager, you need to find out the name of the Application Pool.
For Central Admin, that would be:
SharePoint Central Administration v4
But we can also uncover the passwords for other Application Pools, e.g.:
SharePoint – 80
SharePoint Web Applications
e4b4b94050634ad2863ad7d7d17c3a17
Next, at 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!):
&$env:windir\\system32\\inetsrv\\appcmd.exe list apppool
"SharePoint Central Administration v4" /text:ProcessModel.Password
An example run is shown below:
Hope this helps someone!