Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

徵狀

在 Azure Active Directory (Azure AD) Connect 中未提供 Exchange Online 信箱。

解決方案

有兩個 Microsoft Azure Active Directory 模組可透過 PowerShell 管理 Azure AD。 目前都支援這兩者。 

若要修正這個問題,請依照下列步驟執行:

  1. 使用 Azure AD PowerShell 模組,確認 Azure AD 中存在該物件。 UsageLocation參數是必要的,必須填入。 例如,請執行下列 Cmdlet:  Get-MsolUser -UserPrincipalName <UserPrinicipalName or DisplayName> | fl ValidationStatus,UsageLocation,*error*

    注意: 只能使用MsolUser Cmdlet 來查看ValidationStatus參數。

    如果 ValidationStatus 參數值不 正常,下列 Microsoft 知識庫文章可能會協助您識別更多關於錯誤的詳細資訊:

    2741233 您會在 Office 365 入口網站或適用于 Windows PowerShell 的 Azure Active Directory 模組中查看使用者驗證錯誤

  2. 如果 Azure AD 中不存在該物件,請確定該物件位於 Azure AD Connect 的範圍內。

  3. 如果物件存在於 Azure AD 中,請使用 [ 取得使用者 Cmdlet],確認 Exchange 中存在該物件。  如果沒有任何結果,請要求 Microsoft 提交物件,以便從 Azure AD 向 Exchange Online 進行轉寄同步處理。 必須使用 ObjectId 參數來發出此要求。 您可以在 Azure AD 中找到 ObjectId 參數值。 (它會採用格式為 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx的格式)。 例如,執行下列其中一個 Cmdlet:  Get-MsolUser -UserPrincipalName <UserPrinicipalName or DisplayName> | fl ObjectIdGet-AzureADUser -SearchString <UserPrinicipalName or DisplayName> | fl ObjectId

  4. 如果使用者不存在,請查看來源廣告的 dump,確認已填入 UserPrincipalNamemailNickname 屬性的值。

  5. 如果已設定 UserPrincipalName 屬性值,請使用 userprincipalname 屬性,要求 Microsoft 提交物件,以便從 Azure AD 向 Exchange Online 進行轉寄同步處理。 提供這個值,因為它可能與您的 PrimarySMTPAddress 屬性值不同。

  6. 檢查 DirSync 錯誤。 若要這樣做,請參閱以下支援文章: 識別 office 365 中的目錄同步處理錯誤識別 office 365 中的 DirSync 提供錯誤 如需有關如何進行疑難排解的詳細資訊,請參閱下列文章: 疑難排解同步處理期間的錯誤疑難排解未同步處理到 Azure AD 的物件

  7. 如果有與其他物件發生衝突,但在您的內部部署 Active Directory 中找不到該物件,請確認沒有僅限雲端的物件造成問題。 您可以透過多種方式來執行此動作。 選取 [ 使用者 ]-在系統管理入口網站中 > 來賓使用者 ,或在系統管理入口網站中查看 [同步處理錯誤詳細資料] 中的屬性。 如果它顯示的 來源錨點為空白,而 頒發機構來源雲端,這就是來賓使用者。 應該移除或更新物件,以減少與同步處理物件的衝突。 最後,您也可以使用 PowerShell 中的下列 Cmdlet 來檢查這項功能。 get-msoluser -userprincipalname John@contoso.com | fl UserType,ImmutableId 結果會類似以下所示: 

    UserType    : Guest
    ImmutableId : 
    
  8. 確認 Azure AD 中有指派給使用者的授權。 這可以在 Azure AD 和 Exchange Online 中進行檢查。 例如: AZURE AD

    Get-MsolUser -UserPrincipalName <UserPrinicipalName or DisplayName> | fl *license*

    Get-AzureADUser -ObjectId <UserPrinicipalName or DisplayName> | fl *license* Exchange Online Get-Recipient <UserPrinicipalName or DisplayName> | fl SkuAssigne

  9. 判斷是否有未刪除或停用狀態的信箱。 若要這樣做,請執行下列 Cmdlet: 虛刪除Get-Mailbox -SoftDeletedMailbox <UserPrinicipalName or DisplayName> 如果信箱是虛刪除的,在30天內可透過使用 MailboxRestoreRequest CMDLET 將廣告帳戶移回作用域或還原內容。 如需詳細資訊,請參閱 刪除或還原 Exchange Online 中的使用者信箱。  停止Get-Mailbox -InactiveMailboxOnly <UserPrinicipalName or DisplayName> 如果信箱處於非使用中狀態,請參閱 在 Exchange Online 中復原非作用中的信箱。 

     

  10. 如果您變更了修正同步處理錯誤,但仍未解決問題,請使用 UserPrincipalName 屬性,要求 Microsoft 提交物件,以便從 Azure AD 向 Exchange Online 進行轉寄同步處理。 請提供此值,因為它可能與您的 PrimarySMTPAddress 屬性值不同。 提供 Azure ObjectID參數,現在需要執行轉寄同步處理。 Get-MsolUser -SearchString <UserPrinicipalName or DisplayName> | fl ObjectID

 

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×