{"id":5933,"date":"2022-08-02T04:43:13","date_gmt":"2022-08-02T04:43:13","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=5933"},"modified":"2023-01-25T04:12:53","modified_gmt":"2023-01-25T04:12:53","slug":"365-mailbox-restore-request","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/365-mailbox-restore-request","title":{"rendered":"365 Mailbox restore request"},"content":{"rendered":"<p class=\"x_MsoNormal\">Originally I tried to use the New-MailboxRestoreRequest powershell cmdlets but it was bugging out on me\u2026 not surprising since the both inactive and new mailboxes shared many of the same details. Turns out I&nbsp;<a href=\"https:\/\/exo365onfield.blogspot.com\/2019\/08\/how-to-connect-inactive-mailbox-hybrid.html\" target=\"_blank\" rel=\"noopener noreferrer\" data-auth=\"NotApplicable\" data-linkindex=\"0\">needed to use the ExchangeGUID<\/a>&nbsp;(Step 10)<\/p>\n<p id=\"YGEwjIs\"><img loading=\"lazy\" decoding=\"async\" width=\"1150\" height=\"586\" class=\"alignnone size-full wp-image-5936  img-responsive\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_62e8aaaaea1b3.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_62e8aaaaea1b3.png 1150w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_62e8aaaaea1b3-300x153.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_62e8aaaaea1b3-1024x522.png 1024w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_62e8aaaaea1b3-768x391.png 768w\" sizes=\"auto, (max-width: 1150px) 100vw, 1150px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p class=\"x_MsoNormal\">I could check restore status using the following lines:<\/p>\n<p class=\"x_MsoNormal\">$requests = Get-MailboxRestoreRequest | select targetmailbox, RequestGuid<\/p>\n<p class=\"x_MsoNormal\">ForEach($request in $requests){Get-MailboxRestoreRequestStatistics -Identity $Request.RequestGuid}<\/p>\n<p>&nbsp;<\/p>\n<p>Re-provisioning mailboxes that didn\u2019t want to exist &#8216;couldn&#8217;t be found&#8217;<\/p>\n<p id=\"DuXibcn\"><img loading=\"lazy\" decoding=\"async\" width=\"1352\" height=\"149\" class=\"alignnone size-full wp-image-5935  img-responsive\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_62e8a8db5fdcf.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_62e8a8db5fdcf.png 1352w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_62e8a8db5fdcf-300x33.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_62e8a8db5fdcf-1024x113.png 1024w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_62e8a8db5fdcf-768x85.png 768w\" sizes=\"auto, (max-width: 1352px) 100vw, 1352px\" \/><\/p>\n<p class=\"x_MsoNormal\">Additionally Admin Console would say something like \u201cThis user&#8217;s on-premises mailbox hasn&#8217;t been migrated to ?Exchange Online?. The ?Exchange Online? mailbox will be available after the migration is completed\u201d<\/p>\n<p>To fix this; I&nbsp;<a href=\"https:\/\/answers.microsoft.com\/en-us\/msoffice\/forum\/all\/mailboxes-unable-to-create-o365-mailbox-after\/abc2aebe-9c26-4ad4-8355-6cf08fe7bc23\" target=\"_blank\" rel=\"noopener noreferrer\" data-auth=\"NotApplicable\" data-linkindex=\"1\">needed to clear the msExchMailboxGUID attribute and set msExchRemoteRecipientType to 1<\/a>. Turns out mailboxes that were migrated from on-prem will carry a flag and GUID for their historical on-prem junk which can prevent a mailbox from provisioning in EXO. Normally not a problem but in this case it was!<\/p>\n\n\n<p>In AD the\u00a0<code>msExchRemoteRecipientType<\/code>\u00a0attribute had a\u00a0<a href=\"https:\/\/answers.microsoft.com\/en-us\/msoffice\/forum\/all\/recipient-type-values\/7c2620e5-9870-48ba-b5c2-7772c739c651\">correct<\/a>\u00a0value of\u00a0<code>4<\/code>\u00a0(Migrated (User Mailbox)) and\u00a0<code>msExchRecipientTypeDetails<\/code>\u00a0a correct value of 2147483648 (RemoteUserMailbox).\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Originally I tried to use the New-MailboxRestoreRequest powershell cmdlets but it was bugging out on me\u2026 not surprising since the both inactive and new mailboxes shared many [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1206,3866,1230,3868,3869,1106,3867],"class_list":["post-5933","post","type-post","status-publish","format-standard","hentry","category-research","tag-1206","tag-could-not-be-found","tag-mailbox","tag-msexchmailboxguid","tag-msexchremoterecipienttype","tag-restore","tag-this-users-on-premises-mailbox-hasnt-been-migrated-to-exchange-online"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=5933"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5933\/revisions"}],"predecessor-version":[{"id":6583,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5933\/revisions\/6583"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=5933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=5933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=5933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}