I believe most people in the customer environment have encountered a situation where customers are unable to provide accounts with specific privileges, such as the farm Account,sp_install or administrator accounts in the SharePoint system, and the lack of these accounts To run PowerShell, you may encounter a problem with insufficient permissions. After a search, I found that if these accounts were used as app pool identity, you could use Appcmd to get the password.
1. Open IIS, click Application Pools, and the right side will show all of the current application pool and identity.
2. The SharePoint Central Administration V4 is a SPFarm account, and this is the account we need.
3. Open command Prompt and run the following code into the Inetsrv folder
4. Run appcmd.exe list AppPool "SharePoint Central Administration V4"/text:* (You can replace SharePoint Central Administration v4 for you Required app Pool name)
5. Take a look at the password here:)
How to use Appcmd to decrypt the IIS app pool account password