Get password for IIS Application Pool account
appcmd is an IIS tool used to manage IIS server. It provides many functions that can be used to manager server related activities like create/configure sites, start/recycle/stop app pools, etc.
Retrieve Password of an App Pool identity account:
- To retrieve password for an app pool identity account, open the command prompt in administrative mode.
- Navigate to C:\Windows\System32\inetsrv directory. This is the location where appcmd.exe exists.
Type the below command and press enter.
appcmd.exe list apppool <<app_pool_name>> /text:*
For example: I have an app pool in my IIS named SampleAppPool which has been assigned a particular account’s identity whose password I would like to retrieve. So I would enter the below command in command prompt.
- Press enter and the result will be as shown below. Due to security reasons, I have removed the username and password from the image but trust me, it shows the username and password there.