Home Network Admin Office365 Office 365 Remove a search for in-place eDiscovery and hold after mailbox...

Office 365 Remove a search for in-place eDiscovery and hold after mailbox deleted

478
0
SHARE

You place the mailbox on hold, but delete the mailbox. The search cannot be removed while there is a hold. So..you need to remove the hold. You can do this with a remote powershell session and this command:

Set-MailboxSearch -Name Searchname -InPlaceHoldEnabled: 0

Wait a minute, refresh the compliance page and the in-placeĀ hold should be = NO
Then you may delete the hold.

*Remote Powershell*
Open PS in administrative context
Run: Set-ExecutionPolicy RemoteSigned
Then Run:
$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange-ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session

NOTE: When prompted for credentials, enter your Office 365 admin username/password or one that has admin rights for the tenant.

LEAVE A REPLY

Please enter your comment!
Please enter your name here