使用 Microsoft 登录
登录或创建帐户。
你好,
使用其他帐户。
你有多个帐户
选择要登录的帐户。

何时替代代理设置

  • 代理需要身份验证:PAD 或计算机注册应用程序失败,System.Net.WebException:远程服务器返回错误: (407) 需要代理身份验证

    • 检查下面的“经过身份验证的代理设置”步骤

  • 目标最终用户 (支持人员、SCCM...) 未安装 PAD 安装程序:PAD 或计算机注册应用程序失败,并出现 System.Net.WebException。

    • 根据代理要求,检查下面的“经过身份验证”或“未经身份验证的代理”设置步骤。

先决条件

确保代理/防火墙允许连接到 Power Automate 云服务

此处提到了云服务终结点列表: IP 地址配置 - Power Automate |Microsoft Learn

经过身份验证的代理设置

  1. 创建或替代 PAD 注册表代理设置 UseDefaultCredentials with 1 和 ProxyServer with 目标代理地址。 

  2. 重写 Power Automate 服务代理设置

    1. 以管理员身份打开文本编辑器并加载以下文件:

      • “C:\Program Files (x86) \Power Automate Desktop\UIFlowService.exe.config”

      • “C:\Program Files (x86) \Power Automate Desktop\PAD.Robot.exe.config”

    2. 在开始 <system.net>标记的正下方,粘贴以下内容

      1. In case the proxy is configured by address:
         <defaultProxy useDefaultCredentials="True"> 
            <proxy
              bypassonlocal="True"
              proxyaddress="replace_with_your_proxy_address"
            />
        </defaultProxy>
      2. In case the proxy is configured by script location:
         <defaultProxy useDefaultCredentials="True"> 
            <proxy
              scriptLocation="replace_with_your_proxy_script_location"
            />
        </defaultProxy>
    3. “replace_with_your_proxy_address”或“replace_with_your_proxy_script_location” 替换为这两个文件中的目标配置

    4. 保存 文件

  3. 使用允许的域服务帐户更改“Power Automate 服务” 帐户

    1. 使用 故障排除工具 UI “更改服务帐户”功能 

    2. 或使用 故障排除工具控制台

      1. 使用帐户密码创建临时文件“temporary.txt”

      2. 将此文件放在“C:\Program Files (x86) \Power Automate Desktop\”文件夹中

      3. 将 <帐户名替换为目标帐户> 后,运行以下命令 2 个命令  

        cd " C:\Program Files (x86)\Power Automate Desktop\”
        
        “TroubleshootingTool.Console.exe ChangeUIFlowServiceAccount <accountname> < temporary.txt”
      4. 删除临时文件

 未经身份验证的代理设置

通常不需要执行此步骤,除非目标最终用户 (支持人员、SCCM、...)  

  1. 重写 “Power Automate 服务”代理设置

    1. 以管理员身份打开文本编辑器并加载以下文件:

      • “C:\Program Files (x86) \Power Automate Desktop\UIFlowService.exe.config”

      • “C:\Program Files (x86) \Power Automate Desktop\PAD.Robot.exe.config”

    2. 在开始 <system.net>标记的正下方,粘贴以下内容

      1. In case the proxy is configured by address:
         <defaultProxy> 
            <proxy
              bypassonlocal="True"
              proxyaddress="replace_with_your_proxy_address"
            />
        </defaultProxy>
      2. In case the proxy is configured by script location:
         <defaultProxy> 
            <proxy
              scriptLocation="replace_with_your_proxy_script_location"
            />
        </defaultProxy>
    3. “replace_with_your_proxy_address”或“replace_with_your_proxy_script_location”替换为 这两个文件中的目标配置

    4. 保存 文件

  2. 重启“Power Automate 服务”

    1. 打开 services.msc 

    2. 查找“Power Automate 服务”

    3. 右键单击并重启

 注意

  • 如果在文件中找不到 <system.net> 标记,则应创建相关的开始标记和结束标记,并且可以粘贴右上方的结束 </configuration> 标记,以避免任何错误配置,如下所示:

           <system.net>

              <!-- put the proxy settings here -->

           </system.net>
  • 如果在服务重启后代理设置生效时遇到问题,请尝试从系统的控制面板中清除 Internet 缓存。 为此,请转到控制面板,搜索并打开“Internet 选项”。 在“常规”选项卡中,单击“删除”。 确保至少选择了“临时 Internet 文件”和“Cookie”,并点击“删除”。

需要更多帮助?

需要更多选项?

了解订阅权益、浏览培训课程、了解如何保护设备等。

社区可帮助你提出和回答问题、提供反馈,并听取经验丰富专家的意见。

此信息是否有帮助?

你对语言质量的满意程度如何?
哪些因素影响了你的体验?
按“提交”即表示你的反馈将用于改进 Microsoft 产品和服务。 你的 IT 管理员将能够收集此数据。 隐私声明。

谢谢您的反馈!

×