Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Overview of this book

Table of Contents (22 chapters)
Microsoft Exchange 2010 PowerShell Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Adding, modifying, and removing server-side inbox rules


Exchange 2010 introduces a new set of cmdlets that can be used to manage server-side inbox rules for mailboxes in your organization. For the first time, we have the ability to add, remove, update, enable, and disable the inbox rules for mailboxes from within the Exchange Management Shell. This new functionality allows administrators to quickly resolve mailbox issues related to inbox rules, and allows them to easily deploy and manage inbox rules in bulk using just a few simple commands. In this recipe, you'll learn how to work with the inbox rules cmdlets in Exchange 2010.

How to do it...

  1. To create an inbox rule, use the New-InboxRule cmdlet:

    New-InboxRule -Name Sales -Mailbox dave `
    -From [email protected] `
    -MarkImportance High
  2. You can change the configuration of an inbox rule using the Set-InboxRule cmdlet:

    Set-InboxRule -Identity Sales -Mailbox dave -MarkImportance Low
  3. Use the Enable-InboxRule and Disable-InboxRule cmdlets to turn a rule...