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

Barry Hart 20 Reputation points
2024-01-22T14:19:06.0633333+00:00

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 errorUser's image

Any help is appreciated. Thanks in advance.

Exchange Online
Exchange Online
A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
0 comments No comments
{count} votes