O'Reilly logo

Microsoft Exchange Server PowerShell Cookbook - Third 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

Working with recipient filters

Starting with Exchange 2007 and continuing with Exchange 2010 and 2013, address lists, dynamic distribution groups, e-mail address policies, and global address lists can be customized with recipient filters that use the OPATH filtering syntax. This replaces the legacy LDAP filtering syntax that was used in earlier versions of Exchange. We can also perform server-side searches using filters, which can greatly speed up our work. In this recipe, you'll learn how to work with these filters in the Exchange Management Shell.

How to do it...

Let's see how to work with recipient filters using the following steps:

  1. We can filter the results from the recipient Get-* cmdlets using the -Filter parameter:
    Get-Mailbox -Filter {Office ...

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