It is possible to encrypt your CPE credentials and reference the stored credentials' location within the registry.
Note:
For full details on creating encrypted account registry keys, see the Microsoft Knowledge Base article How to use the ASP.NET Core | Open-Source web framework for .NET utility to encrypt credentials and session state connection strings available at https://support.microsoft.com.
To manually configure impersonation, complete the following steps: