本文提供使用 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 帳戶時,可能會因為數個原因而發生錯誤:
- 輸入連線的帳戶認證可能不符合計算機上的認證。
- 裝置可能未Microsoft已加入 Entra,或Microsoft Entra 混合式聯結以支援Microsoft Entra 驗證。
- Microsoft Entra 帳戶可能不會同步處理至計算機。
解決方法
確定裝置已Microsoft已加入 Entra 或已加入網域:
開啟命令提示字元。
執行
dsregcmd /status
命令。檢查區
Device State
段。請確定其中
DomainJoined
一個 或AzureAdJoined
值為YES
。如果情況並非如此,除非裝置已加入,否則無法使用Microsoft Entra 帳戶。 如需詳細資訊,請參閱 如何加入裝置。
識別要用於電腦設定的 Microsoft Entra 帳戶:
開啟 [ 設定] ,然後選取 [ 帳戶]。
選取 [ 存取公司或學校]。
請確定您看到「已連線至 <your_organization> Microsoft Entra ID」之類的文字。線上到的帳戶可用於連線。
同步處理裝置上的 Microsoft Entra 帳戶:
選取 [存取公司或學校] 頁面上的 [Microsoft項目連線時,請選取 [資訊] 按鈕。
這會開啟說明連線資訊和裝置同步處理狀態的頁面。 選取頁面結尾的 [ 同步處理 ] 按鈕,並等候此程式完成。
確認已設定的 Microsoft Entra 帳戶可以登入裝置:
- 嘗試使用步驟 2 中所識別Microsoft Entra 帳戶登入計算機。
- 裝置登入必須成功,才能用於連線。
請確定流程已正確設定正確的使用者名稱和密碼。 這必須符合您電腦上的帳戶。