Manage Litigation Hold
1.1 – Assign Litigation Hold to specific recipient (Exchange Online mailbox)
PowerShell command Syntax
Set-Mailbox <Identity> -LitigationHoldEnabled $True
|
Set-Mailbox John -LitigationHoldEnabled $True
|
1.2 – Assign Litigation Hold to a specific recipient (Exchange Online mailbox) + define time range (7 years).
PowerShell command Syntax
Set-Mailbox <Identity> -LitigationHoldEnabled $True -LitigationHoldDuration <time range >
|
Set-Mailbox John -LitigationHoldEnabled $True -LitigationHoldDuration 2555
|
1.3 – Assign Litigation Hold to all of the Exchange Online recipients (Bulk mode)
PowerShell command Syntax
Get-Mailbox -ResultSize Unlimited -Filter {RecipientTypeDetails -eq "UserMailbox"} | Set-Mailbox -LitigationHoldEnabled $True
|
1.4 – Assign litigation Hold to Exchange Online recipients (Bulk mode) based on a criterion | Department
PowerShell command Syntax
Get-Recipient -RecipientTypeDetails UserMailbox -ResultSize unlimited -Filter '(Department -eq "<Department>")' | Set-Mailbox -LitigationHoldEnabled $True
|
Get-Recipient -RecipientTypeDetails UserMailbox -ResultSize unlimited -Filter '(Department -eq "Marketing")' | Set-Mailbox -LitigationHoldEnabled $True
|
1.5 – Assign litigation Hold to Exchange Online recipients that don’t have Litigation Hold
PowerShell command Syntax
Get-Mailbox | Where {$_.LitigationHoldEnabled -match "False"} | ForEach-Object {
$Identity = $_.alias; Set-Mailbox -Identity $Identity -LitigationHoldEnabled $True }
|
2. Display information about Litigation Hold
2.1 – Display information about specific recipient which his mailbox has Litigation Hold
PowerShell command Syntax
Get-Mailbox <Identity> | FL LitigationHold*
|
Get-Mailbox John | FL LitigationHold*
|
2.2 – Display information about all of the mailboxes which have Litigation Hold
PowerShell command Syntax
Get-Mailbox -ResultSize Unlimited | FL LitigationHold*
|
2.3 – Display information about User mailboxes which has Litigation Hold using the filter operator
PowerShell command Syntax
Get-Mailbox -ResultSize Unlimited -Filter {RecipientTypeDetails -eq "UserMailbox"} | FL Name,LitigationHold*
|
2.4 – Display information about User mailboxes which has Litigation Hold using the Where operator
PowerShell command Syntax
Get-Mailbox | Where {$_.LitigationHoldEnabled -match "True"} | FL Name,LitigationHold*
|
2.5 – Display information about User mailboxes which doesn’t have Litigation Hold
PowerShell command Syntax
Get-Mailbox | Where {$_.LitigationHoldEnabled -match "False"} | FL Name,LitigationHold*
|
2.6 – Display information about mailboxes which have Litigation Hold | information about the recoverable items folder.
PowerShell command Syntax
Get-Mailbox -ResultSize Unlimited -Filter {LitigationHoldEnabled -eq $true} | Get-MailboxFolderStatistics –FolderScope RecoverableItems | Format-Table Identity,FolderAndSubfolderSize -Auto
|
3. Remove Litigation Hold
3.1 – Remove Litigation Hold to specific recipient (Exchange Online mailbox)
PowerShell command Syntax
Set-Mailbox <Identity> -LitigationHoldEnabled $False
|
Set-Mailbox John -LitigationHoldEnabled $False
|
3.2 -Remove Litigation Hold to all of the Exchange Online recipients (Bulk mode)
PowerShell command Syntax
Get-Mailbox -ResultSize Unlimited -Filter {RecipientTypeDetails -eq "UserMailbox"} | Set-Mailbox -LitigationHoldEnabled $False
|
Commenti
Posta un commento