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}
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.