?
Solved

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

Posted on 2014-02-07
3
Medium Priority
?
2,812 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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
Suggested Courses

771 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