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.

徵狀

假設您在 Microsoft Exchange Server 2016 PowerShell 中執行新的 MailboxRestoreRequestMailboxExportRequest Cmdlet。當 TargetMailbox 參數包含空格時,您可能會收到「NullReferenceException」錯誤訊息。例如:

PS-AF&PLATFORMC:\Windows\system32>MailboxRestoreRequest-SourceDatabase "<DatabaseIdParameter>"-SourceStoreMailbox "<StoreMailboxIdParameter>"-TargetMailbox "MS Test"-AllowLegacyDNMismatch 警告:發生意外的錯誤,且產生 Watson 轉儲:物件參考未設定為物件的實例。 警告:任務模組 "LoggingModule OnIterateCompleted" 失敗,並出現例外 "物件參照未設為物件的實例"。 此模組被略過。 任務執行結果不應該受到影響。 未將物件參照設為物件的實例。    + CategoryInfo: NotSpecified:(:)[New-MailboxRestoreRequest],NullReferenceException    + FullyQualifiedErrorId: NullReferenceException、MailboxReplication ()   .MailboxRestoreRequest.NewMailboxRestoreRequest    + PSComputerName: <ComputerName>

此外,會在事件檢視器中記錄含有 "NullReferenceException" 錯誤的事件 ID 4999。 只要 TargetMailbox 參數中包含白色空格,就會讓 Cmdlet 順利執行。

原因

發生這個問題的原因是,當 TargetMailbox 參數中有空白時,一個參數傳回錯誤的值。

解決方案

若要解決此問題,請安裝 Exchange server 2016 的累積更新 11或 exchange server 2016 的後續累積更新

狀態

Microsoft 已確認<適用於>一節中所列的 Microsoft 產品確實有上述問題。

參考

了解 Microsoft 用來說明軟體更新的術語

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!

×