Link to home
Start Free TrialLog in
Avatar of Margarita
Margarita

asked on

Remove litigation hold from a list of users

Hello everyone.

I am looking to create a small script which will remove litigation hold from a number of users at once with powershell

Get-mailbox test@contoso.com | set-Mailbox -litigationHoldEnabled $false

-----------------------------------------------------------------------------------------------------------------------------------------------------------------

Would this work?

$RemoveLitigationHold = import-csv "C:\temp\Removelit.csv"
ForEach ($User in $RemoveLitigationHold) {set-mailbox -Identity $user.PrimarySMTPAddress -litigationHoldEnabled $false}
ASKER CERTIFIED SOLUTION
Avatar of Margarita
Margarita

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial