Aug 11 2017 10:36 PM
HI,
we have 2000 users
1500 are mailbox legal hold enabled in
500 mailbox to be legal hold enabled
how to do this by powershell? target is the 500 users only without passing through the 1500 users?
Thanks
Aug 12 2017 12:09 AM
Solutionyou can try below script
Get-Mailbox -ResultSize unlimited | Where-Object { $_.LitigationHoldEnabled -eq $False } | Set-Mailbox -LitigationHoldEnabled $true --LitigationHoldDuration 2555
Aug 12 2017 12:09 AM
Solutionyou can try below script
Get-Mailbox -ResultSize unlimited | Where-Object { $_.LitigationHoldEnabled -eq $False } | Set-Mailbox -LitigationHoldEnabled $true --LitigationHoldDuration 2555