Solved

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

Posted on 2014-02-07
3
2,705 Views
Last Modified: 2016-04-14
Hello,
I am looking for a script to enable litigation hold for more than one user in Office 365.

THank you very much
0
Comment
Question by:claudiamcse
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 39843172
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
 

Expert Comment

by:nacAdmin
ID: 39848323
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
 

Expert Comment

by:Jay Harrell
ID: 41550672
This works for Litigation hold, but what about InPlaceHold?
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question