Encrypting and Decrypting AppSettings in Enterprise Console
- Last UpdatedJul 09, 2025
- 1 minute read
To protect sensitive configuration values in the appSettings section of the web.config file by encrypting them, and to allow editing by decrypting them when needed.
Location of web.config:
Prerequisites
-
Open Command Prompt as Administrator.
-
Navigate to the folder:

To Encrypt the AppSettings:
aspnet_regiis -pe "appSettings" -app "/EnterpriseConsole" -site 2 -prov "DataProtectionConfigurationProvider"
To Decrypt the AppSettings:
aspnet_regiis -pd "appSettings" -app "/EnterpriseConsole" -site 2
Notes:
- The site ID 2 refers to the AVEVAWorkTasksSites site as seen in the IIS Manager.
- Ensure you remove the <clear /> tag from the appSettings section before encrypting, if it exists.
- You must re-encrypt the section after making changes.