本文說明尋找及驗證Microsoft已加入混合式裝置狀態的三種方式。
確認Microsoft Entra 混合式聯結
必要條件
無
在裝置上本機
請遵循下列步驟:
開啟 Windows PowerShell。
輸入
dsregcmd /status
。確認 AzureAdJoined 和 DomainJoined 都設定為 [是] 。
您可以使用 DeviceId,並使用 Microsoft Entra 系統管理中心或 PowerShell 來比較服務的狀態。
使用 Microsoft Entra 系統管理中心
請遵循下列步驟:
以至少 雲端裝置系統管理員身分登入 Microsoft Entra 系統管理中心。
瀏覽至 [身分識別>裝置]>[所有裝置]。
如果 [已註冊] 數據行顯示 [暫止],則Microsoft Entra 混合式聯結尚未完成。 在同盟環境中,只有在無法註冊和Microsoft Entra Connect 設定為同步處理裝置時,才會發生此狀態。 等候 Microsoft Entra Connect 完成同步處理週期。
如果 已註冊 數據行包含 日期/時間,則Microsoft Entra 混合式聯結已完成。
使用 PowerShell
使用 Get-MgDevice,確認 Azure 租使用者中的裝置註冊狀態。 此 Cmdlet 位於 Microsoft Graph PowerShell SDK中。
當您使用 Get-MgDevice Cmdlet 來檢查服務詳細數據時:
- 具有 裝置標識碼 符合 Windows 用戶端識別碼的物件必須存在。
- DeviceTrustType 的值 已加入網域。 此設定相當於 Microsoft Entra 系統管理中心 [裝置] 頁面上的 [Microsoft Microsoft混合式聯結 狀態。
- 針對條件式存取中使用的裝置,Enabled 的值會 True,且 DeviceTrustLevel 的值會 Managed。
以系統管理員身分開啟 Windows PowerShell。
輸入 Connect-MgGraph,以連線到您的 Azure 租使用者。
計算所有Microsoft已加入混合式裝置 (不包括擱置 狀態)
(Get-MgDevice -All | where {($_.TrustType -eq 'ServerAd') -and ($_.ProfileType -eq 'RegisteredDevice')}).count
計算具有 擱置 狀態的所有Microsoft Entra 混合式聯結裝置
(Get-MgDevice -All | where {($_.TrustType -eq 'ServerAd') -and ($_.ProfileType -ne 'RegisteredDevice')}).count
列出所有Microsoft Entra 混合式聯結裝置
Get-MgDevice -All | where {($_.TrustType -eq 'ServerAd') -and ($_.ProfileType -eq 'RegisteredDevice')}
列出具有 擱置 狀態的所有Microsoft Entra 混合式聯結裝置
Get-MgDevice -All | where {($_.TrustType -eq 'ServerAd') -and ($_.ProfileType -ne 'RegisteredDevice')}
列出單一裝置的詳細資料:
- 輸入下列命令。 在裝置本機取得裝置標識碼。
$Device = Get-MgDevice -DeviceId <ObjectId>
- 確認
AccountEnabled
設定為True
。
$Device.AccountEnabled