Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
The main intent of this article is to make you aware of ‘Exchange fail to mount’ error, its effects, causes, and solution.
In this video we show how to create a Contact 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 Recipients >> Contact ta…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
Suggested Courses

609 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