Skip to Main Content
Microsoft Exchange 2010 PowerShell Cookbook
book

Microsoft Exchange 2010 PowerShell Cookbook

by Mike Pfeiffer
July 2011
Intermediate to advanced content levelIntermediate to advanced
480 pages
11h 54m
English
Packt Publishing
Content preview from Microsoft Exchange 2010 PowerShell Cookbook

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 remove 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 $false

How ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft Exchange Server 2013 PowerShell Cookbook: Second Edition - Second Edition

Microsoft Exchange Server 2013 PowerShell Cookbook: Second Edition - Second Edition

Jonas Andersson, Mike Pfeiffer

Publisher Resources

ISBN: 9781849682466Other