How to enable eDiscovery & In Place Hold in Office 365

I had done some research on how to enable the eDiscovery & In Place Hold with PowerShell

  1. In Plan Hold is only available in Office 365 E3 Plan or Exchange Online Plan 2
  2. Connecting to Office 365 via PowerShell
  3. To add yourself into “Discovery Management” Group and check what is the name of the default DiscoverySearchMailbox
  4. To place the user’s mailbox hold, and search / export all their Email content to Outlook PST
#Check the existing members in "Discovery Management" Group
Get-RoleGroupMember -Identity "Discovery Management"
#To add your account into the "Discovery Management" Group
Add-RoleGroupMember -Identity "Discovery Management" -Member tonyk

#To look for the Name of Discovery Mailbox
$DiscoveryMailbox=(Get-mailbox | ? name -like discovery*).name

#To hold all the items for user's mailbox
New-MailboxSearch -Name "DenisD@ctcgsb123.onmicrosoft.com" -SourceMailboxes DenisD -InPlaceHoldEnabled $true -TargetMailbox $DiscoveryMailbox

#To start the Mailbox Search
Start-MailboxSearch -Identity TonyK@ctcgsb123.onmicrosoft.com -Confirm

#Remove Mailbox Search - If you had accidently created for wrong user
Set-MailboxSearch -Identity "TonyK@ctcgsb123.onmicrosoft.com" -InPlaceHoldEnabled $false
Remove-MailboxSearch -Identity "TonyK@ctcgsb123.onmicrosoft.com"

Login to Office 365 Portal, and wait until your see the status is “Estimated Succeeded” and click on “Preview Search Results” to have a look on the items

O365-InPlaceHold-03.jpg

O365-InPlaceHold-04.jpg

You can also click on “Export to PST File” and open it in Microsoft Outlook

O365-InPlaceHold-01.jpg

O365-InPlaceHold-02.jpg

Reference 

https://technet.microsoft.com/en-us/library/ff637980(v=exchg.160).aspx#lithold

Share This