We help IT Professionals succeed at work.
Troubleshooting Question

Deleted AD user accounts & MS 365 mailboxes

70 Views
Last Modified: 2020-09-25
Deleted AD user accounts can no longer be restored because no backups were made & a disabled recycle bin option.

Can we possibly mount/attach their restored MS 365 mailboxes to their newly RE-created AD & email accounts?
Comment
Watch Question

GiboSystems Engineer

Author

Commented:
Or should we just re-create their new AD user accounts w/ their fresh MS 365 email mailboxes?
Jose Gabriel Ortega CastroCEO Faru Bonon IT&Agency /Top-Rated Freelancer (Upwork)/Photographer
CERTIFIED EXPERT
Awarded 2018
Distinguished Expert 2018
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
FOXActive Directory/Exchange Engineer
CERTIFIED EXPERT
Top Expert 2015

Commented:
Gibo-
1. Did you already create e new user and new mailbox for the user that you deleted?
If so-
1.  Leave the original mailbox in a soft deleted state or make sure you put it in a soft deleted state. (if you have to put it in a soft deleted state wait about 20 minutes before you run the Get-Recipient command below)
2.  Using powershell connected to Exchange online I would like you to run the below command, this is assuming the old and new user both have the same exact display names

Get-Recipient "enter display name here" -IncludeSoftDeletedRecipients | Select Identity,ExchangeGuid,ArchiveGuid,primarysmtpaddress,When*

You will now see the current mailbox and the soft deleted mailbox, the Exchange/archiveGuids, and date of soft deletion

Using Mailbox restore You will now pump the mail from the soft deleted mailbox using the exchangeguid of the soft deleted mailbox in to the new mailbox using the exchangeGuid of the new mailbox


New-MailboxRestoreRequest -Name "Restore for userA Inbox" -SourceMailbox "pastetheExchangeGuidoftheSoftdeletedmailboxhere" -TargetMailbox "pastetheExchangeGuidofthenewMailboxhere"  -AllowLegacyDNMismatch -AcceptLargeDataLoss -BadItemLimit Unlimited -LargeItemLimit Unlimited -ConflictResolutionOption KeepSourceItem -verbose



*If the user had and archive make sure you create a new archive mailbox for the new user and now you will do the same command Using the archiveGuids from soft deleted  to the new ArchiveGuid* (if you have to create an archive mailbox for the new mailbox wait about 20-30 minutes before you run the Get-Recipient command to view the ArchiveGuid for the new mailbox)

New-MailboxRestoreRequest -Name "Restore for userA Archive" -SourceMailbox "pastetheArchiveGuidoftheSoftdeletedmailboxhere" -TargetMailbox "pastetheArchiveGuidofthenewMailboxhere"  -AllowLegacyDNMismatch -AcceptLargeDataLoss -BadItemLimit Unlimited -LargeItemLimit Unlimited -ConflictResolutionOption KeepSourceItem -verbose


ref link:  https://docs.microsoft.com/en-us/powershell/module/exchange/new-mailboxrestorerequest?view=exchange-ps
GiboSystems Engineer

Author

Commented:
No new AD users yet were created & no restored mailboxes yet as I'm trying to get a strategy or opinions or recommendations to approach the problem

The mailboxes' boxes were like few months ago, would that be another issue?

GiboSystems Engineer

Author

Commented:
I am also surprise that there's a recycle bin in MS 365 to restore or recover mailboxes & accounts?

But the deleted users in AD is complicating the process or issue of MS 365 looking the correct identity in a hybrid environment.
FOXActive Directory/Exchange Engineer
CERTIFIED EXPERT
Top Expert 2015

Commented:
Ok so being that you haven't created anyting new yet.  Let's do this

Connect to Exchange on line via powershell and run the below command.  You should see the soft deleted mailbox

Get-Recipient "enter display name here" -IncludeSoftDeletedRecipients | Select Identity,ExchangeGuid,ArchiveGuid,primarysmtpaddress,When*
GiboSystems Engineer

Author

Commented:
Where do find in 365 the PowerShell or how do I connect from my PC to 365 using PowerShell?

Hope u don't mind, not an expert on PS scripts
FOXActive Directory/Exchange Engineer
CERTIFIED EXPERT
Top Expert 2015

Commented:
Follow the steps in this link to connect to exchange online

ref link:  https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-powershell?view=exchange-ps
FOXActive Directory/Exchange Engineer
CERTIFIED EXPERT
Top Expert 2015

Commented:
How long ago was the mailbox deleted?  If the mailbox didn't have a litigation hold and it's over 30 days it may be removed from o365 already

ref link:  https://docs.microsoft.com/en-us/microsoft-365/enterprise/microsoft-365-exchange-online-data-deletion?view=o365-worldwide
GiboSystems Engineer

Author

Commented:
I will double check again to make sure & keep you guys posted, they should be the same dates when their AD users' accounts were also accidentally deleted
Active Directory/Exchange Engineer
CERTIFIED EXPERT
Top Expert 2015
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.