Enable Litigation Hold in Office 365 Using PowerShell (2024)

Organizations must retain all the emails, calendars, etc., including the deleted items related to specific individuals for security purposes and future case investigations. Then you may think that how to retain all the emails even if it gets deleted from Outlook. Thus, Microsoft enables litigation hold in Office 365 to retain the modified email messages and deleted mailbox items from the Recoverable Items folder. All you need is to place the litigation hold on specific mailboxes, all users, or groups based on your requirements.

Therefore, let us see how we can manage the litigation hold in Office 365 in this article.

What is Office 365 Litigation Hold?

Litigation holds are a way to retain deleted mailbox items and the original versions of modified contents. You can place both a time-based hold and infinite hold for any mailbox.

Placing mailboxes on hold can help the organization in legal case investigations. Thus, it is necessary to retain electronically stored information (ESI) like emails, calendar items, etc., in the organization.

License Requirements to Place Mailboxes on Litigation Hold:

Admins will frequently encounter the below error while placing a mailbox on hold.

Your Microsoft Exchange Online license doesn’t permit you to put a litigation hold on this mailbox.

Generally, this occurs due to insufficient license plans in the organization. So, to place a user mailbox on litigation hold, they must have one of the following licensing plans:

  • Exchange Online Plan 2
  • Microsoft 365 E3
  • Microsoft 365 E5
  • Office 365 E3
  • Office 365 E5

Suppose, if you have Exchange Online Plan 1 license, you need to assign the Exchange Online Plan archiving license to place the litigation hold on a mailbox.

Enable Litigation Hold in Office 365:

Admins can enable litigation hold on specific mailboxes using the Exchange admin center. Therefore, to set up a litigation hold for the user’s mailboxes, follow the steps below:

  1. Open Exchange admin center.
  2. Navigate to Recipients → Mailboxes in the left pane.
  3. Now select the user for whom you want to place a litigation hold.
  4. After selecting the user, click on the Others tab.
  5. Lastly, click the Manage the litigation hold to enable it.

Note: Likewise, you can also specify the hold duration and add a note informing the user about the hold.

Enable Litigation Hold in Office 365 Using PowerShell (1)

The following are the impacts of placing a user mailbox on litigation hold:

  • When you enable litigation hold, the Recoverable Items folder storage quota gets increased from 30 GB to 100 GB by default.
  • The user’s archive mailbox items will be retained.
  • The Recoverable Items subfolder holds the permanently deleted items by the user.
  • Mailbox items purged from the Recoverable Items folder will be retained.

Moreover setting up an Exchange litigation hold is easy, but it’s impossible to place a litigation hold for all users or bulk users using the Exchange admin center. Also, it is difficult to gather all the details about users with and without a litigation hold.

So, we have to go with the task automation in PowerShell. Let’s take a close look at how to enable litigation hold using PowerShell.

Manage Litigation Hold Using PowerShell:

It’s now easier than ever to place mailboxes on litigation hold with PowerShell! But, before proceeding, make sure you connect to Exchange Online PowerShell.

Here are different use cases for placing mailboxes on hold.

  • Check Whether a User Mailbox has Litigation Hold
  • Extracting List of Users with Litigation Hold Enabled and Without.
  • Enable Litigation Hold for a Specific User.
  • Enable Litigation Hold for All Users.
  • Place Litigation Hold for Bulk Users (Import CSV)
  • Assign Litigation Hold to Users Who Have Not Enabled Before.
  • Enable Litigation Hold for a Specific Group or Department
  • Set up Office 365 Litigation Hold Duration.
  • Disable Litigation Hold Using PowerShell.

Check Whether a User Mailbox has Litigation Hold

Therefore, to verify the litigation hold status for a specific user mailbox, use the cmdlet given below.

Get-Mailbox [emailprotected] | FL LitigationHold*

Enable Litigation Hold in Office 365 Using PowerShell (2)

Extracting List of Users with Litigation Hold Enabled and Without

To check the litigation hold status of all the user mailboxes, use the following cmdlet. Also, you can export the mailbox hold report for a detailed analysis of user mailboxes with litigation hold and without.

Get-Mailbox -ResultSize Unlimited | FL LitigationHold*

Enable Litigation Hold in Office 365 Using PowerShell (3)

Enable Litigation Hold for a Specific User

Next, to enable litigation hold for specific Office 365 users, use the Set-Mailbox cmdlet with the LitigationHoldEnabled parameter.

Set-Mailbox -Identity [emailprotected] -LitigationHoldEnabled $True

Note: The above cmdlet places a mailbox on litigation holds for an infinite period.

Enable Litigation Hold for All Users

To enable the litigation hold for all the users regardless of their litigation hold status, set it up using the cmdlet given below.

Get-Mailbox -ResultSize Unlimited -Filter "RecipientTypeDetails -eq 'UserMailbox'" | Set-Mailbox -LitigationHoldEnabled $true -LitigationHoldDuration 456

To place all the mailboxes on litigation hold for an infinite time, you can remove the LitigationHoldDuration parameter from the above cmdlet.

Place Litigation Hold for Bulk Users (Import CSV)

To set up litigation hold for only selected users, you can import the User Principal Name of the users in a CSV file, and execute the below cmdlet.

Required Fields in CSV file:

Create a CSV file with the User Principal Name of the Office 365 users.Enable Litigation Hold in Office 365 Using PowerShell (4)

Connect-ExchangeOnline $User = Import-Csv C:\setlitigationhold.csv foreach($user in $user){ Write-Progress -Activity "Placing litigation hold to -$user..." Set-Mailbox -Identity $User.User -LitigationHoldEnabled $True If($?) { Write-Host Placed Litigation Hold Successfully to $User.user -ForegroundColor Green } Else { Write-Host Error occurred while placing litigation hold to $User.user -ForegroundColor Red } }

Assign Litigation Hold to Users Who Have Not Enabled Before

Previously, admins should find out the users without litigation hold manually and place the hold for the required users. Now instead of the manual process, admins can achieve it using the below cmdlet.

Get-Mailbox | Where {$_.LitigationHoldEnabled -match "False"} | ForEach-Object { $Identity = $_.alias; Set-Mailbox -Identity $Identity -LitigationHoldEnabled $True} 

This cmdlet finds and enables the litigation hold for the mailboxes that haven’t been assigned before.

Enable Litigation Hold for a Specific Group or Department

Placing all mailboxes on hold may sometimes expose you to ransomware attacks, storage issues, etc., so it’s best to enable litigation hold for the required Office 365 groups or specific departments in the organization. Therefore, run the below cmdlet to set a particular department of Office 365 users on hold.

Get-Recipient -RecipientTypeDetails UserMailbox -ResultSize unlimited -Filter '(Department -eq "Legal")' | Set-Mailbox -LitigationHoldEnabled $True

Set up Office 365 Litigation Hold Duration

You can specify the litigation hold duration for the user mailbox by configuring the LitigationHoldDuration parameter in the Set-Mailbox cmdlet.

Set-Mailbox [emailprotected] -LitigationHoldEnabled $true -LitigationHoldDuration 1095 

Note: Mention the hold duration in terms of days. (i.e., if you want to set litigation hold for three years, set approximately 1095 days)

Disable Litigation Hold Using PowerShell

Litigation hold won’t let you delete emails or mailbox items. Thereby your storage capacity exceeds the mailbox quota over time. So to disable litigation hold from a specific recipient, you can set the LitigationHoldEnabled parameter to False. This will automatically turn off the litigation hold for the given mailboxes.

Set-Mailbox -Identity [emailprotected] -LitigationHoldEnabled $False 

To remove litigation hold from all mailboxes in Exchange Online, then you can set the LitigationHoldEnabled parameter to False

Get-Mailbox -ResultSize Unlimited -Filter {RecipientTypeDetails -eq "UserMailbox"} | Set-Mailbox -LitigationHoldEnabled $False 

Overcome EXO PowerShell Puzzles with AdminDroid Exchange Online Reporting Tool

Placing litigation hold in Microsoft 365 mailboxes is like putting a padlock on a treasure chest, but it’s only half the battle! Therefore, it’s essential to monitor mailbox hold reports frequently and ensure that the required mailboxes are put on hold properly.

But monitoring mailbox hold reports using PowerShell lacks comprehensive information on the no of mailboxes on hold, the types of holds implemented, or when holds were placed or removed. 👎

    • This limited view of an organization’s mailbox hold status makes it challenging to identify compliance issues, resulting in potential errors and time-consuming processes.

So, therefore let me serve you with the best Microsoft 365 reporting tool, AdminDroid. This provides detailed mailbox hold reports on litigation hold, retention hold, and in-place hold with a more granular view of hold duration, owner, mailbox type, hold date, etc. Moreover, the AdminDroid Exchange Online reporting tool provides an in-depth analysis of Exchange Online mailboxes allowing you to explore specific details like the start and end dates of retention periods, mailbox types, departments, and much more.

That’s it! There you go. I hope we’ve shown a clear idea of how to manage the litigation hold in Office 365. If you need further assistance with litigation hold, feel free to reach us in the comment section. We would be glad to assist you!

Enable Litigation Hold in Office 365 Using PowerShell (5)

Therefore, get started now with the AdminDroid Exchange Online management tool to streamline and enhance your Exchange Online environment. Not only does AdminDroid provide mailbox hold reports, but it also provides crystal-clear metrics on mailbox usage, mailbox permission changes, and mailbox access details! Moreover, AdminDroid provides a 360° view of all Microsoft 365 services with over 1800 reports and 30+ visually appealing smart dashboards.

Can’t believe it? Try out the AdminDroid live demo today and experience Microsoft 365 reporting in real-time!

Enable Litigation Hold in Office 365 Using PowerShell (2024)

FAQs

Enable Litigation Hold in Office 365 Using PowerShell? ›

Litigation Hold can also be enabled in Microsoft 365 using PowerShell with the Set-Mailbox <Mailbox Name> -LitigationHoldEnabled $true and related cmdlets.

How do I put my Office 365 account on a litigation hold? ›

Office 365 Litigation Hold FAQs
  1. Go to the Exchange admin center and go to Recipients.
  2. Select Mailboxes, and in the list of user mailboxes, choose the one you want to verify has a hold, and then click Edit.
  3. On the mailbox properties page, click Mailbox features.
  4. Under Litigation hold, confirm that hold is enabled.

How do I turn off litigation hold in PowerShell? ›

How to Turn Off Litigation Hold in PowerShell. A Litigation Hold doesn't allow users to delete mailbox items or emails. If you want to remove it using PowerShell, you only need to set the LitigationHoldEnabled parameter to False. In doing so, you'll automatically turn off this feature for the relevant mailboxes.

Which PowerShell command can help me put all mailboxes on litigation hold at once? ›

Litigation Hold is a mailbox property. You can place all mailboxes in an organization on hold by using the Set-Mailbox cmdlet.

How do I enable mailbox litigation? ›

In the EAC:
  1. Go to Recipients > Mailboxes.
  2. In the list of user mailboxes, click the mailbox that you want to verify Litigation Hold settings for, and then click Edit .
  3. On the mailbox properties page, click Mailbox features.
  4. Under Litigation hold, verify that hold is enabled.
Feb 21, 2023

Is a legal hold the same as a litigation hold? ›

By imposing a legal hold, also known as a litigation hold or preservation obligation, organizations ensure that potentially important data is retained and not altered or deleted.

How do I notify a user in litigation hold? ›

Litigation hold and In-place hold are transparent to the user, so they will not know they are on hold.

How to enable Litigation Hold via PowerShell? ›

Litigation Hold can also be enabled in Microsoft 365 using PowerShell with the Set-Mailbox <Mailbox Name> -LitigationHoldEnabled $true and related cmdlets.

How do I enable litigation? ›

To activate Litigation Hold:
  1. Access the Microsoft 365 admin center and select User.
  2. Go to Active users.
  3. Choose the user you wish to put on Litigation Hold.
  4. Select the Mail tab under the properties menu.
  5. Under More actions, select Manage litigation hold.
Feb 9, 2024

How do I turn off retention hold in Office 365? ›

To disable the default retention policy for the user, please access Exchange admin center>Recipients>Mailboxes. Double click on the user mailbox and select Manage mailbox policies. Under Retention policy, select [No policy] instead of Default MRM Policy.

What is the maximum Litigation Hold in Office 365? ›

Limitations : 1000 mailboxes per single hold & 10,000 holds for single organization. Recommendations : For organizations with legal obligations, Microsoft 365 Litigation Hold should always be used when content needs to be preserved for compliance purposes.

Can you enable Litigation Hold on a shared mailbox? ›

Similarly, if you want to place a shared mailbox on litigation hold, the shared mailbox must have an Exchange Online Plan 2 license or an Exchange Online Plan 1 license with an Exchange Online Archiving add-on license.

What is the difference between retention policy and Litigation Hold? ›

Whereas Litigation hold can only be used to keep mailbox items for a given duration (or indefinitely), retention policies are more flexible, and most importantly, can include data from other Microsoft 365 workloads. Litigation hold on the other hand is Exchange-specific functionality.

How do I use EAC to place a mailbox on Litigation Hold? ›

Enabling Litigation Hold using the EAC

Click on Mail and click on EditExchangeProperties. Click on Mailbox Features and then click on Enable under Litigation hold: Disabled. Once open, you need to fill in the number of days to keep the mailbox items. If you want to keep them for indefinite period, leave this blank.

How do I apply retention policy to all mailbox? ›

Use the Exchange admin center to apply a retention policy to multiple mailboxes
  1. Go to Recipients > Mailboxes.
  2. In the list view, use the Shift or Ctrl keys to select multiple mailboxes.
  3. In the details pane, click More options.
  4. Under Retention Policy, click Update.
Feb 21, 2023

Can a mailbox on Litigation Hold be deleted? ›

Removing the Exchange Server license will hard delete the mailbox. However, a Litigation Hold-enabled mailbox, or a mailbox that's assigned to a retention policy, can't be deleted in Exchange Online. In this case, the mailbox won't become inactive.

What is the purpose of the Litigation Hold in Office 365? ›

A litigation hold in Office 365 is a retention feature that allows companies to preserve data across the O365 app ecosystem.

What is the difference between Litigation Hold and in place hold in O365? ›

Litigation Hold: Holds that are applied to user mailboxes in Exchange Online. In-Place Hold: Holds that are applied to user mailboxes by using the In-Place eDiscovery & Hold tool in the Exchange admin center in Exchange Online.

What is Litigation Hold limitations in O365? ›

Limitations : 1000 mailboxes per single hold & 10,000 holds for single organization. Recommendations : For organizations with legal obligations, Microsoft 365 Litigation Hold should always be used when content needs to be preserved for compliance purposes.

Where do I put retention policy in Office 365? ›

Depending on the portal you're using, navigate to one of the following locations:
  • Sign in to the Microsoft Purview portal > Data Lifecycle Management card > Policies > Retention policies. ...
  • Sign in to the Microsoft Purview compliance portal > Solutions > Data lifecycle management > Microsoft 365 > Retention Policies.
Apr 1, 2024

Top Articles
Latest Posts
Article information

Author: Moshe Kshlerin

Last Updated:

Views: 6187

Rating: 4.7 / 5 (77 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Moshe Kshlerin

Birthday: 1994-01-25

Address: Suite 609 315 Lupita Unions, Ronnieburgh, MI 62697

Phone: +2424755286529

Job: District Education Designer

Hobby: Yoga, Gunsmithing, Singing, 3D printing, Nordic skating, Soapmaking, Juggling

Introduction: My name is Moshe Kshlerin, I am a gleaming, attractive, outstanding, pleasant, delightful, outstanding, famous person who loves writing and wants to share my knowledge and understanding with you.