When to override proxy settings
-
Proxy requires authentication: The PAD or Machine registration application fails with System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required
-
check the "Authenticated proxy setup" steps below
-
-
PAD installer was not installed by the target end-user (Helpdesk, SCCM, ...): The PAD or Machine registration application fails with System.Net.WebException.
-
check either the Authenticated or Unauthenticated proxy setup steps below depending on your proxy requirements.
-
Prerequisites
Make sure the proxy/firewall allows connectivity to Power Automate cloud services
The list of cloud services endpoints is mentioned here: IP address configuration - Power Automate | Microsoft Learn
Authenticated proxy setup
-
Create or override the PAD registry proxy settings UseDefaultCredentials with 1 and ProxyServer with the target proxy address.
-
Override the Power Automate Service proxy settings
-
Open a text editor as admin and load the files below:
-
"C:\Program Files (x86)\Power Automate Desktop\UIFlowService.exe.config"
-
"C:\Program Files (x86)\Power Automate Desktop\PAD.Robot.exe.config"
-
-
Right under the opening <system.net>tag, paste the below
-
In case the proxy is configured by address: <defaultProxy useDefaultCredentials="True"> <proxy bypassonlocal="True" proxyaddress="replace_with_your_proxy_address" /> </defaultProxy>
-
In case the proxy is configured by script location: <defaultProxy useDefaultCredentials="True"> <proxy scriptLocation="replace_with_your_proxy_script_location" /> </defaultProxy>
-
-
Replace either "replace_with_your_proxy_address" or "replace_with_your_proxy_script_location" with the target configuration in both files
-
Save the files
-
-
Change the "Power Automate Service" account with an allowed domain service account
-
Either using the TroubleshootTool UI "change service account" feature
-
Or using the TroubleshootTool Console
-
Create a temporary file “temporary.txt” with the account password inside
-
Put this file in the " C:\Program Files (x86)\Power Automate Desktop\” folder
-
Run the 2 commands below after replacing the <accountname> by the target account
cd " C:\Program Files (x86)\Power Automate Desktop\” “TroubleshootingTool.Console.exe ChangeUIFlowServiceAccount <accountname> < temporary.txt”
-
Delete the temporary file
-
-
Unauthenticated proxy setup
This step is usually not necessary unless PAD setup wasn't executed by the target end-user (Helpdesk, SCCM, ...)
-
Override the "Power Automate Service" proxy settings
-
Open a text editor as admin and load the files below:
-
"C:\Program Files (x86)\Power Automate Desktop\UIFlowService.exe.config"
-
"C:\Program Files (x86)\Power Automate Desktop\PAD.Robot.exe.config"
-
-
Right under the opening <system.net>tag, paste the below
-
In case the proxy is configured by address: <defaultProxy> <proxy bypassonlocal="True" proxyaddress="replace_with_your_proxy_address" /> </defaultProxy>
-
In case the proxy is configured by script location: <defaultProxy> <proxy scriptLocation="replace_with_your_proxy_script_location" /> </defaultProxy>
-
-
Replace either "replace_with_your_proxy_address" or "replace_with_your_proxy_script_location" with the target configuration in both files
-
Save the files
-
-
Restart the "Power Automate Service"
-
Open services.msc
-
Look for "Power Automate Service"
-
Right-click and restart
-
Note
-
If the <system.net> tag is not found in the file, the related opening and closing tags should be created, and can pasted right above the closing </configuration> tag to avoid any misconfiguration as below:
<system.net>
<!-- put the proxy settings here -->
</system.net>
-
If you have problems with the proxy settings taking effect even after a restart of the service, try clearing the internet cache from your system's Control Panel. To do this, go to Control Panel, search for and open "Internet Options". From the "General" tab, click "Delete". Ensure that at least "Temporary Internet Files" and "Cookies" are selected, and hit "Delete".