If you don’t have access to your organisations password safe or if you or your team mate has forgotten to add a password to a certain service account used in SharePoint, it is possible to retrieve the password from IIS!
There is a way to find out the application pool identity password via command line thanks to the inetsrv appcmd!
Open IIS and take note of the application pool name that runs the application pool identity with the password you want to retrieve.
In my example it is “SharePoint – intranet80”, so please replace this as appropriate to your environment.
Keep in mind – this works for any IIS application pool – SharePoint web app, SharePoint service applications or non SharePoint IIS / .NET sites application pools!
Open a command prompt and run this:
&$env:windir\system32\inetsrv\appcmd.exe list apppool "SharePoint - intranet80" /text:ProcessModel.Password