A community member has associated this post with a similar question:
Remove litigation hold using PowerShell
Only moderators can edit this content.
Remove litigation hold using PowerShell
Hi,
I need to remove litigation from several thousand Office 365 accounts. I want to be able to feed a .csv containing all the email addresses with litigation hold enabled. My .csv on has 1 column containing the email address7es - all other columns are blank.
I tried using
Connect-ExchangeOnline
$csv=Import-CSV -Path "C:\Litcsv.csv"
ForEach ($user in $csv)
{
Set-Mailbox $user | Where-Object { $_.LitigationHoldEnabled -eq $True } | Set-Mailbox -LitigationHoldEnabled $False
}
I was getting an error
Any help is appreciated. Thanks in advance.