File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ This example uses custom filters to create a dynamic distribution group with the
114114- ** Filters** Include only recipients who have the ** Company** attribute defined as Contoso and the ** Office** attribute defined as North Building.
115115
116116``` powershell
117- New-DynamicDistributionGroup -Name AllContosoNorth -OrganizationalUnit contoso.com/Users -RecipientFilter "((RecipientType -eq 'UserMailbox') -and (Company -eq 'Contoso') -and (Office -eq 'North Building'))"
117+ New-DynamicDistributionGroup -Name AllContosoNorth -OrganizationalUnit contoso.com/Users -RecipientFilter "((RecipientTypeDetails -eq 'UserMailbox') -and (Company -eq 'Contoso') -and (Office -eq 'North Building'))"
118118```
119119
120120## Custom filters using the Filter parameter
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ You need to be assigned permissions before you can run this cmdlet. Although thi
7979
8080### Example 1
8181``` powershell
82- New-AddressList -Name MyAddressList -RecipientFilter "((RecipientType -eq 'UserMailbox') -and ((StateOrProvince -eq 'Washington') -or (StateOrProvince -eq 'Oregon')))"
82+ New-AddressList -Name MyAddressList -RecipientFilter "((RecipientTypeDetails -eq 'UserMailbox') -and ((StateOrProvince -eq 'Washington') -or (StateOrProvince -eq 'Oregon')))"
8383```
8484
8585This example creates the address list MyAddressList. The address list includes recipients that are mailbox users and have the StateOrProvince property set to Washington or Oregon.
@@ -93,7 +93,7 @@ This example creates the address list MyAddressList2 that includes mailboxes tha
9393
9494### Example 3
9595``` powershell
96- New-AddressList -Name "AL_AgencyB" -RecipientFilter "((RecipientType -eq 'UserMailbox') -and (CustomAttribute15 -like 'AgencyB*'))"
96+ New-AddressList -Name "AL_AgencyB" -RecipientFilter "((RecipientTypeDetails -eq 'UserMailbox') -and (CustomAttribute15 -like 'AgencyB*'))"
9797```
9898
9999This example creates the address list AL\_ AgencyB that includes mailboxes that have the value of the CustomAttribute15 parameter contains AgencyB.
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ This example creates a dynamic distribution group named Marketing Group that con
9898
9999### Example 2
100100``` powershell
101- New-DynamicDistributionGroup -Name "Washington Management Team" -RecipientFilter "(RecipientType -eq 'UserMailbox') -and (Title -like 'Director*' -or Title -like 'Manager*') -and (StateOrProvince -eq 'WA')" -RecipientContainer "North America"
101+ New-DynamicDistributionGroup -Name "Washington Management Team" -RecipientFilter "(RecipientTypeDetails -eq 'UserMailbox') -and (Title -like 'Director*' -or Title -like 'Manager*') -and (StateOrProvince -eq 'WA')" -RecipientContainer "North America"
102102```
103103
104104This example creates a dynamic distribution group named Washington Management Team that contains all users in the organizational unit named North America from Washington State whose titles start with "Director" or "Manager".
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ This example creates an email address policy in an on-premises Exchange organiza
159159
160160### Example 2
161161``` powershell
162- New-EmailAddressPolicy -Name "Northwest Executives" -RecipientFilter "(RecipientType -eq 'UserMailbox') -and (Title -like '*Director*' -or Title -like '*Manager*') -and (StateOrProvince -eq 'WA' -or StateOrProvince -eq 'OR' -or StateOrProvince -eq 'ID')" -EnabledEmailAddressTemplates "SMTP:%2g%[email protected] " -Priority 2 162+ New-EmailAddressPolicy -Name "Northwest Executives" -RecipientFilter "(RecipientTypeDetails -eq 'UserMailbox') -and (Title -like '*Director*' -or Title -like '*Manager*') -and (StateOrProvince -eq 'WA' -or StateOrProvince -eq 'OR' -or StateOrProvince -eq 'ID')" -EnabledEmailAddressTemplates "SMTP:%2g%[email protected] " -Priority 2 163163```
164164
165165This example creates an email address policy in an on-premises Exchange organization that uses a custom recipient filter:
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ This example creates the GAL named NewGAL.
8282
8383### Example 2
8484``` powershell
85- New-GlobalAddressList -Name GAL_AgencyB -RecipientFilter "(RecipientType -eq 'UserMailbox') -and (CustomAttribute15 -eq 'AgencyB')"
85+ New-GlobalAddressList -Name GAL_AgencyB -RecipientFilter "(RecipientTypeDetails -eq 'UserMailbox') -and (CustomAttribute15 -eq 'AgencyB')"
8686```
8787
8888This example creates the GAL named GAL\_ AgencyB by using the RecipientFilter parameter to include all mailbox users whose custom attribute 15 equals AgencyB.
You can’t perform that action at this time.
0 commit comments