enable all mailbox litigation hold for 7 years

Get-Mailbox -ResultSize Unlimited -Filter {RecipientTypeDetails -eq “UserMailbox”} | Set-Mailbox -LitigationHoldEnabled $true -LitigationHoldDuration 2555

note: this only applying existing mailbox.

TechNet details:

https://technet.microsoft.com/en-us/library/dn790612.aspx