Link to home
Start Free TrialLog in
Avatar of Gibo
Gibo

asked on

Deleted AD user accounts & MS 365 mailboxes

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?
Avatar of Gibo
Gibo

ASKER

Or should we just re-create their new AD user accounts w/ their fresh MS 365 email mailboxes?
SOLUTION
Avatar of J0rtIT
J0rtIT
Flag of Venezuela, Bolivarian Republic of image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of Gibo

ASKER

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?

Avatar of Gibo

ASKER

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.
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*
Avatar of Gibo

ASKER

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
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
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
Avatar of Gibo

ASKER

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
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial