共用方式為


當您使用 Microsoft Entra 帳戶時,桌面流程無效的認證錯誤

本文提供使用 Microsoft Entra 帳戶執行桌面流程時所發生的 或 WindowsIdentityIncorrect 錯誤碼解決方案InvalidConnectionCredentials

適用於: Power Automate
原始 KB 編號: 4555623

徵兆

當您使用 Microsoft Entra 帳戶執行桌面流程時,它會失敗並 InvalidConnectionCredentials 出現 或 WindowsIdentityIncorrect 錯誤碼。

{
    "error":{
        "code": "InvalidConnectionCredentials",
        "message": "Could not connect to the Power Automate UI flows Agent. Please make sure that the UI flows connection credentials are valid."
    }    
}
{
    "error":{
        "code": "WindowsIdentityIncorrect",
        "message": "The credentials provided with the request are invalid."
    }    
}

原因

使用 Microsoft Entra 帳戶時,可能會因為數個原因而發生錯誤:

解決方法

  1. 確定裝置已Microsoft已加入 Entra 或已加入網域:

    1. 開啟命令提示字元。

    2. 執行 dsregcmd /status 命令。

    3. 檢查區 Device State 段。

      執行dsregcmd /status時,命令提示字元中的裝置狀態螢幕快照。

      請確定其中 DomainJoined 一個 或 AzureAdJoined 值為 YES

      如果情況並非如此,除非裝置已加入,否則無法使用Microsoft Entra 帳戶。 如需詳細資訊,請參閱 如何加入裝置

  2. 識別要用於電腦設定的 Microsoft Entra 帳戶:

    1. 開啟 [ 設定] ,然後選取 [ 帳戶]。

    2. 選取 [ 存取公司或學校]。

    3. 請確定您看到「已連線至 <your_organization> Microsoft Entra ID」之類的文字。線上到的帳戶可用於連線。

  3. 同步處理裝置上的 Microsoft Entra 帳戶:

    1. 選取 [存取公司或學校] 頁面上的 [Microsoft項目連線時,請選取 [資訊] 按鈕。

    2. 這會開啟說明連線資訊和裝置同步處理狀態的頁面。 選取頁面結尾的 [ 同步處理 ] 按鈕,並等候此程式完成。

  4. 確認已設定的 Microsoft Entra 帳戶可以登入裝置:

    1. 嘗試使用步驟 2 中所識別Microsoft Entra 帳戶登入計算機。
    2. 裝置登入必須成功,才能用於連線。
  5. 請確定流程已正確設定正確的使用者名稱和密碼。 這必須符合您電腦上的帳戶。

其他相關資訊