Company News

PowerShell – Retention (Tags & Policy)

July 7, 2014

Create a new Retention Tag New-RetentionPolicyTag -Name 1DAY -Type ‘Personal’ -AgeLimitForRetention 1 -RetentionAction ‘DeleteAndAllowRecovery’ -RetentionEnabled $true Get a List of all Retention Tags Get-RetentionPolicyTag Create a new Retention Policy New-RetentionPolicy “Company Policy” -RetentionPolicyTagLinks “Company Policy-Deleted Items”,”Company Policy-Sent Items” Apply a new Retention Policy to ALL users $UserMailboxes = Get-mailbox -Filter {(RecipientTypeDetails -eq ‘UserMailbox’)} $UserMailboxes | Read More

Stephanie Kahlam

Stephanie Kahlam

 

Subscribe via Email

Categories

Powered by...

itgroove Corporate Profile
Connect With Us