Backup and Restore CCP IIS Configuration

Backup and Restore CCP IIS Configuration

109
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 15:51 PM


Objective


When following the CCP Upgrade Documentation, during the Web Service Uninstallation steps, the documentation states that post-uninstall you should remove your additional security configurations and authentication methods, such as additional application endpoints for alternative authentication methods, etc.

This can be an administrative undertaking, as it requires taking notes of the configs, removing them, then rebuilding them afterward. 

The below method serves as an alternative - leveraging the built-in IIS backup/restore functionality to try to avoid the manual rebuilding.

NOTE:
- These steps are offered by support with no guarantee, so we do suggest still making sure to manually notate configuration information in case a manual rebuild is necessary.
- This has not been tested on PVWA servers, and we do not suggest performing this on a CCP co-housed on a PVWA server.
- The backup and restore process that is performed takes place against the entirety of IIS - and any sites/applications within it.


Environment


12.0;12.1;12.2;12.4;12.3;12.5;12.6 Privileged Access Manager (PAM, self-hosted) Central Credential Provider

Procedure


This process needs to be interwoven with your CCP Web Service uninstallation/reinstallation, when you're following the documentation.

BEFORE WEBSERVICE REMOVAL:
1) Open CMD Prompt as an Administrator
2) Enter this command to change directory: CD C:\Windows\System32\inetsrv
3) Enter this command to Create the IIS Backup package: appcmd add backup "upgrade"
appcmd add backup
4) Enter this command to verify the package: appcmd list backup
appcmd list backup
5) After you've created the backup package and verified it, you can continue to follow the Product Documentation for uninstallation of the Web Service, and subsequent removal of 'leftovers' in IIS. You can then continue on to the upgrade of CCP, and the installation of the new Web Service. When the new CCP is in place, move to the next steps.

AFTER CCP/WEBSERVICE REINSTALL:
1) Verify the 'new' Web Service installation is functional by making a basic REST call (no extra auth options) via simple query.
2) Open CMD Prompt as an Administrator. Make sure IIS Windows are closed.
3) Enter this command to change directory: CD C:\Windows\System32\inetsrv
4) Enter this command to restore the backup package we created earlier: appcmd restore backup "upgrade"
appcmd restore backup
5) After the backup completes successfully, enter command: iisreset
6) Open IIS - you should see your restored applications/configurations

If the process fails, you have a few possible outcomes:
- Try the restore again
- Rebuild the configurations manually, as directed originally in documentation
- In case of catastrophic issues with the process, simple uninstallation of AIMWebService - deletion of related IIS data, and reinstallation of AIMWebService should get you back to a 'blank slate'.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000mEOCAY&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail