O'Reilly logo

Microsoft Exchange Server 2013 PowerShell Cookbook - Second Edition by Mike Pfeiffer, Jonas Andersson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Placing mailboxes on retention hold

When a user goes on vacation or will be out of the office for an extended period of time, you may need to suspend the processing of the retention policy applied to their mailbox. This recipe will show you how to use the Exchange Management Shell to place mailboxes on retention hold, as well as how to remove the retention hold and discover which mailboxes are currently configured for retention hold.

How to do it...

  1. To place a mailbox on retention hold, use the Set-Mailbox cmdlet:
    Set-Mailbox -Identity dsmith -RetentionHoldEnabled $true
    
  2. To remove the retention hold setting from the mailbox, use the same command, but set the -RetentionHoldEnabled parameter to $false:
    Set-Mailbox -Identity dsmith -RetentionHoldEnabled ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required