Manage Litigation Hold by using PowerShell | Office 365 5/5 (1) 5 min read

Litigation Hold is an Exchange server future that enables us to “freeze” all the mail items that were deleted by the user and keep this mail item in a hidden folder that can be accessed by the Exchange administrator.
In other words, each of the mail items that was deleted by Intentionally or accidentally by the user can be recovered.

The “protection” of deleted mail items will be implemented for all the type of mail items such as calendar, mail, etc.
By default, the deleted mail items will be saved to an unlimited amount of time.

In a scenario of Office 365 and Exchange Online customer, the ability to use the option of Litigation Hold is available only for Office 365 customers that purchased Exchange Online E3 license or Exchange Online Plan 2.

PowerShell | Help & additional information

Running PowerShell commands in Office 365 based environment
To be able to run the PowerShell commands specified in the current article, you will need to create a remote PowerShell with Azure Active Directory or Exchange Online. In case that you need help with the process of creating a Remote PowerShell session, you can use the links on the bottom of the Article.

The current article describes the way that we apply Litigation Hold on Exchange Online mailboxes. In case that you need information regarding the part that relate to “how to recover mail items” from a mailbox with Litigation Hold, you can read the article – Using Exchange In-place eDiscovery & Hold for recovering deleted mail items | 6#7

1. Assign Litigation Hold

Assign Litigation Hold to specific recipient (Exchange Online mailbox)

PowerShell command syntax

PowerShell command Example

Assign Litigation Hold to a specific recipient (Exchange Online mailbox) + define time range (7 years)

PowerShell command syntax

PowerShell command Example

Assign Litigation Hold to all of the Exchange Online recipients (Bulk mode)

PowerShell command Example

Assign litigation Hold to Exchange Online recipients (Bulk mode) based on a criterion | Department

PowerShell command syntax

PowerShell command Example

Assign litigation Hold to Exchange Online recipients that don’t have Litigation Hold

PowerShell command Example

2. Display information about Litigation Hold

Display information about specific recipient which his mailbox has Litigation Hold

PowerShell command syntax

PowerShell command Example

Display information about all of the mailboxes which have Litigation Hold

PowerShell command syntax

PowerShell command Example

Display information about User mailboxes which has Litigation Hold using the filter operator

PowerShell command Example

Display information about User mailboxes which has Litigation Hold using the Where operator

PowerShell command Example

Display information about User mailboxes which doesn’t have Litigation Hold

PowerShell command Example

Display information about mailboxes which have Litigation Hold | information about the recoverable items folder.

PowerShell command Example

3. Remove Litigation Hold

Remove Litigation Hold to specific recipient (Exchange Online mailbox)

PowerShell command syntax

PowerShell command Example

Header

PowerShell command syntax

PowerShell command Example

For your convenience, I have “Wrapped” all the PowerShell commands that were reviewed in the article,
in a “Menu Based” PowerShell Script.

You are welcome to download the PowerShell script and use it.
Download -o365info PowerShell Script

Manage Litigation Hold by using PowerShell | Office 365
In case you want to get more detailed information about how to use the o365info menu PowerShell script, you can read the following article


Getting started with Office 365 PowerShell

PowerShell Naming Conventions & general information
Get more information about the Naming Conventions that are used in the PowerShell articles – Help and additional information – o365info.com PowerShell articles
Creating a remote PowerShell session to Exchange Online 
To get more information about the required remote PowerShell commands that you need to use for connecting to Exchange Online, read the following article:
Connect to Exchange Online by using Remote PowerShell
Creating a remote PowerShell session to Azure Active Directory
To get more information about the required software component + the remote PowerShell commands that you need to use for connecting Azure Active Directory, read the following article: Part 2: Connect to Office 365 by using Remote PowerShell
Basic introduction to PowerShell in Office 365 based environment
If you are new in the PowerShell world, you can read more information about how to start working with PowerShell in Office 365 based environment in the following article series:  Getting started with Office 365 PowerShell – Part 1, Part 2, Part 3.
Running and using o365info PowerShell scripts
In case that you need more information about how to use the o365info PowerShell scripts that I add to the PowerShell articles, you can read the article – How to run and use o365info PowerShell menu script

PowerShell command syntax – Office 365 | Article series index

Now it’s Your Turn!
It is important for us to know your opinion on this article

Print Friendly, PDF & Email

Related Post

Please rate this

Eyal Doron on EmailEyal Doron on FacebookEyal Doron on GoogleEyal Doron on LinkedinEyal Doron on PinterestEyal Doron on RssEyal Doron on TwitterEyal Doron on WordpressEyal Doron on Youtube
Eyal Doron
Share your knowledge.
It’s a way to achieve immortality.
Dalai Lama

Leave a Reply

Your email address will not be published. Required fields are marked *