Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3205
  • Last Modified:

Script to enable in Place hold for multiple users in Office 365

Hello,
I am looking for a script to enable litigation hold for more than one user in Office 365.

THank you very much
0
claudiamcse
Asked:
claudiamcse
1 Solution
 
SubsunCommented:
You can input the user name in a text file and run the following code to set the litigation hold..
GC c:\input.txt | % {Set-Mailbox $_ -LitigationHoldEnabled $true -LitigationHoldDuration 2555}

Open in new window

0
 
nacAdminCommented:
We just did something similar in our O365 tenant, but we used Litigation Hold for all mailboxes. Same idea as what Subsun suggested...

Get-Mailbox | Set-Mailbox -LitigationHoldEnabled $true -LitigationHoldDuration 2555

Open in new window


The command above placed all mailboxes on Lit Hold for 7 years (roughly). This will ensure that we retain immutable copies of all messages for the period of time. We can then use the eDiscovery center in SharePoint Online for searches, or we can use a discovery mailbox and straight Exchange Online Search-Mailbox commands.
0
 
Jay HarrellCommented:
This works for Litigation hold, but what about InPlaceHold?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now