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
114
114
- ** Filters** Include only recipients who have the ** Company** attribute defined as Contoso and the ** Office** attribute defined as North Building.
115
115
116
116
``` 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'))"
118
118
```
119
119
120
120
## 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
79
79
80
80
### Example 1
81
81
``` 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')))"
83
83
```
84
84
85
85
This 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
93
93
94
94
### Example 3
95
95
``` 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*'))"
97
97
```
98
98
99
99
This 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
98
98
99
99
### Example 2
100
100
``` 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"
102
102
```
103
103
104
104
This 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
159
159
160
160
### Example 2
161
161
``` 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
163
163
```
164
164
165
165
This 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.
82
82
83
83
### Example 2
84
84
``` 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')"
86
86
```
87
87
88
88
This 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