Tutorial / Cram Notes
Recovering deleted data in Exchange Online and SharePoint Online is essential for maintaining business continuity and compliance in any organization utilizing Microsoft 365 services. The ability to restore lost information can be crucial, especially when accidental deletions occur or there is a need to recover data for legal or auditing purposes.
Exchange Online Data Recovery
Exchange Online provides several methods for recovering deleted items, including the Recoverable Items folder and retention policies.
Recoverable Items Folder
Every mailbox in Exchange Online has a Recoverable Items folder, a hidden folder meant to protect from accidental deletion. When a user deletes an item (email, calendar entry, etc.), it’s moved here. The default retention period for items in this folder is 14 days, but it can be extended to a maximum of 30 days.
To recover items from the Recoverable Items folder:
- In Outlook, navigate to the folder list and select the “Deleted Items” folder.
- Click “Recover Deleted Items From Server” to open the Recover Deleted Items tool.
- Select the items to recover and click “Restore.”
Administrators can also use the Search-Mailbox
PowerShell cmdlet to search and recover items.
Retention Policies
Organizations might configure custom retention policies in Exchange Online to retain data for longer periods. For example, a retention policy could be set to retain deleted emails for one year. If items are purged from the Recoverable Items folder, they might still be retained under such a policy and can be recoverable through eDiscovery.
Example of recovery through a retention policy involves:
- Admins opening the Security & Compliance Center.
- Navigating to the “eDiscovery” section.
- Creating a new eDiscovery case and searching for the deleted content.
- Exporting the content found or directly restoring it to the user’s mailbox.
SharePoint Online Data Recovery
Like Exchange Online, SharePoint Online provides mechanisms to recover data such as the Recycle Bin and retention policies within retention labels and retention policies.
Recycle Bins
SharePoint Online has two stages of Recycle Bins: the site Recycle Bin and the Site Collection Recycle Bin.
- Site Recycle Bin: When a user deletes an item, it goes into the site Recycle Bin, where it is kept for 93 days.
- Site Collection Recycle Bin: If an item is deleted from the site Recycle Bin, it moves to the Site Collection Recycle Bin, where it remains for the remainder of the 93-day period.
To recover items from the Recycle Bin:
- Navigate to the SharePoint site.
- Click on the Recycle Bin link in the Quick Launch bar or from the Site Contents page.
- Select the items to restore and click “Restore.”
Retention Policies and Labels
Retention policies in SharePoint Online are designed to retain content for a specified period for compliance purposes. A retention policy or label, once applied to content, will preserve it even if a user attempts to delete it.
If a retention policy is in place, data can be recovered from the Preservation Hold library, where the items are kept until the retention period is over.
To recover from a Preservation Hold library:
- Navigate to the SharePoint site.
- Go to the Preservation Hold library (only visible to admins).
- Select the items to restore and move them back to their original location.
Comparison Table for Recovery Options
Feature | Exchange Online | SharePoint Online |
---|---|---|
Primary Recovery Method | Recoverable Items folder | Recycle Bin |
Secondary Recovery Method | Retention Policies & eDiscovery | Retention Policies & eDiscovery |
Default Retention Period | 14-30 days | 93 days |
Powershell cmdlet | Search-Mailbox | Not applicable |
Access by | Users & Admins | Users (Recycle Bin), Admins (Preservation Hold Library) |
Recovery for | Emails, Calendar Items, etc. | Documents, Lists, Libraries, etc. |
It’s critical for organizations to understand these options and effectively configure their Microsoft 365 environment to meet their data recovery needs. Properly configured retention policies can provide a long-term safety net, while the immediate recovery from the Recoverable Items folder and Recycle Bin can quicken day-to-day operational recovery. It’s recommended that admins familiarize themselves with using PowerShell for advanced recovery scenarios and the eDiscovery process for complex retrievals and legal compliance. Regular review and testing of these recovery processes is one of the best practices in ensuring data integrity and availability in Microsoft 365.
Practice Test with Explanation
True or False: In Exchange Online, once an email is deleted from the “Deleted Items” folder, it can no longer be recovered.
Answer: False
Explanation: The email can still be recovered from the “Recoverable Items” folder for a period defined by the retention policy.
Single select: What feature in Exchange Online allows administrators to recover deleted items for all users?
- A. In-Place Hold
- B. eDiscovery
- C. Litigation Hold
- D. Archive Mailbox
Answer: C. Litigation Hold
Explanation: Litigation Hold preserves all mailbox content, including deleted items, until the hold is removed.
True or False: SharePoint Online items can be restored by users from the site collection recycle bin for up to 90 days after deletion.
Answer: True
Explanation: Users have access to the site collection recycle bin to restore deleted items for a set period, usually up to 90 days, depending on the site’s retention policy.
Multiple select: Which of the following are available methods to restore deleted data in SharePoint Online? (Select two)
- A. Using the Restore option from the site collection recycle bin
- B. Using the Version History feature
- C. Direct recovery from the database backups
- D. Using the eDiscovery Center
Answer: A and B
Explanation: A allows users to restore items from the recycle bin, and B lets users restore to a previous version of a document if versioning is enabled.
True or False: An Office 365 administrator can recover a deleted mailbox after the retention period has ended.
Answer: False
Explanation: Once the retention period has elapsed, the mailbox cannot be recovered through the normal process.
Single select: What tool can be used to search for and recover deleted items across Exchange Online, SharePoint Online, and OneDrive for Business?
- A. SharePoint Admin Center
- B. Compliance Center
- C. Azure Active Directory
- D. Exchange Admin Center
Answer: B. Compliance Center
Explanation: The Microsoft 365 Compliance Center offers eDiscovery capabilities that allow searching and recovering items across various services.
True or False: In SharePoint Online, site collection administrators can restore an entire site from the preserve hold library.
Answer: False
Explanation: Individual documents can be restored, but the restore of an entire site from the preserve hold library is not possible without Microsoft support intervention.
Single select: To recover a deleted site collection in SharePoint Online, you need to use:
- A. The SharePoint Online Management Shell
- B. SharePoint Designer
- C. Microsoft 365 admin center
- D. The Azure Management Portal
Answer: A. The SharePoint Online Management Shell
Explanation: Powershell commands in the SharePoint Online Management Shell can be used to restore a deleted site collection.
True or False: After enabling a Litigation Hold in Exchange Online, deleted items are immediately and permanently removed from the user’s mailbox and cannot be retrieved.
Answer: False
Explanation: When a Litigation Hold is enabled, items remain in the mailbox and can be retrieved; they’re not immediately and permanently deleted.
Multiple select: Which PowerShell cmdlets can be used for restoring items in Exchange Online? (Select two)
- A. Set-Mailbox
- B. Restore-Mailbox
- C. New-MailboxRestoreRequest
- D. Get-MailboxRestoreRequest
Answer: C and D
Explanation: C can be used to create a request to restore a mailbox, and D can be used to view the status of restore requests.
Single select: What is the default retention time for deleted items in the Exchange Online “Recoverable Items” folder?
- A. 14 days
- B. 30 days
- C. 60 days
- D. 90 days
Answer: B. 30 days
Explanation: By default, Exchange Online retains deleted items in the Recoverable Items folder for 30 days unless the retention period is modified.
Interview Questions
What is an inactive mailbox in Office 365?
An inactive mailbox is a mailbox that has been deactivated or deleted and is retained for a specified period of time, such as for legal or regulatory requirements.
How can you restore an inactive mailbox in Exchange Online?
You can restore an inactive mailbox in Exchange Online by using the Exchange admin center or PowerShell. The mailbox will be restored as a recovery mailbox.
How long can you retain an inactive mailbox in Office 365?
You can retain an inactive mailbox in Office 365 for up to 30 years.
What is the purpose of a retention policy in Office 365?
A retention policy in Office 365 is used to retain or delete content in mailboxes, SharePoint sites, and OneDrive accounts based on specific retention settings.
How can you recover deleted data in SharePoint Online?
You can recover deleted data in SharePoint Online by using the Recycle Bin or the SharePoint Online Management Shell.
How long can deleted items be retained in the SharePoint Online Recycle Bin?
Deleted items can be retained in the SharePoint Online Recycle Bin for up to 93 days.
How can you restore deleted data in SharePoint Online using the SharePoint Online Management Shell?
You can restore deleted data in SharePoint Online using the SharePoint Online Management Shell by using the Restore-SPODeletedSite or Restore-SPODeletedSiteCollection cmdlet.
What is the difference between a site and a site collection in SharePoint Online?
A site is a single location where you can create and store content in SharePoint Online, while a site collection is a set of sites that are related and share a common top-level site.
How can you configure retention policies for SharePoint Online sites?
You can configure retention policies for SharePoint Online sites by creating a retention label and then publishing it to the site.
What are some best practices for recovering deleted data in Exchange Online and SharePoint Online?
Some best practices for recovering deleted data in Exchange Online and SharePoint Online include ensuring that backups are performed regularly, testing the restore process regularly, and providing appropriate training and guidance to users on data recovery procedures.
Does anyone know if there’s a way to recover deleted emails in Exchange Online after they’ve been purged from the recycle bin?
Is it possible to restore an accidentally deleted SharePoint Online site collection?
The blog post was really helpful, thank you!
Can someone explain the difference between In-Place Hold and Litigation Hold in Exchange Online?
Appreciate the detailed guides in this post!
I have found the information on eDiscovery search queries somewhat lacking. Anyone have a more thorough guide?
Are there any PowerShell scripts available for automating the recovery of deleted SharePoint items?
What happens to the metadata of a file restored from the SharePoint Recycle Bin?