CPM - How To Restart IIS App Pools at the Account Object Level
Objective
To selectively restart (aka recycle) an IIS application pool, you would want to set the 'RestartAppPool' platform-level parameter/property (located under Automatic Password Management -> Additional Policy Settings) to 'No', and set the account object-level property to 'Yes'. However, if you edit an IIS app pool object in PVWA, you'll notice that there is no 'RestartAppPool' property. The only option is the 'RestartService' property, which is NOT the same and will NOT work if set to 'Yes'.
Out-of-box, there is no 'RestartAppPool' property at the account object-level. However, this can be created by repurposing the pre-existing 'RestartService' property.
Environment
Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)
Procedure
To create an account object-level 'RestartAppPool' parameter, follow below:
Part I:
- In PVWA, navigate to the Platform Management page.
- Depending on which UI you are in, select the Dependents/Service Account Platforms tab.
- Select the IIS Application Pool platform and click Edit (in the v10 UI, first select the ellipsis button (three horizontal dots), then click Edit).
- Expand UI & Workflows -> Properties -> Optional, and select the pre-existing 'RestartService' property.
- Change the property name from 'RestartService' to 'RestartAppPool' (without the quotes).
- Click OK to save the change.
Note: The method to see the updated property/parameter depends upon how quickly PVWA updates in your particular environment. In some environments, the change may be immediate, whereas in other environments, it may take a few minutes to sync and/or require clearing your browser cache. However, some situations may also require an IISReset be performed on the PVWA server. For any questions and/or issues regarding this process, please submit a case to the PVWA team.
Part II:
- In PVWA, navigate to the Accounts View page.
- Select the target account object in which the IIS app pool object in question is associated to.
- Using the PVWA 'Classic Interface', select the IIS Application Pool tab, and click on the app pool account object in question (this presumes the object has already been created...if it has not been, create the object and continue below).
- Click Edit.
- Under Optional Properties, you will now see the 'RestartAppPool' property you just created.
- To restart the IIS application pool after the new password has been set, tick the checkbox next to 'RestartAppPool', click the drop-down menu next to 'Change to', and select 'Yes'.
- Click Save to save the change.
Note: If the 'RestartService' property was previously set to a value ('Yes' or 'No'), that property will still show up under Optional Properties, even though it no longer exists on the platform. While it will not "do anything", we recommend you remove it. To do so, deselect the checkbox next to 'RestartService', and then click Save. If you edit the app pool object again, you'll notice that the 'RestartService' property no longer exists.