How should you complete the Windows PowerShell command?

HOTSPOT
You are the Exchange Online administrator for a company that has offices in Seattle, New York,
London, and Paris. The StateOrProvince attribute in Active Directory is populated with each user’s
location.
Employees must be able to send email messages to all users in Europe.
You need to create the distribution group.
How should you complete the Windows PowerShell command? To answer, select the appropriate
segment from each list in the answer area.

HOTSPOT
You are the Exchange Online administrator for a company that has offices in Seattle, New York,
London, and Paris. The StateOrProvince attribute in Active Directory is populated with each user’s
location.
Employees must be able to send email messages to all users in Europe.
You need to create the distribution group.
How should you complete the Windows PowerShell command? To answer, select the appropriate
segment from each list in the answer area.

Answer:

Explanation:

Box 1: New-DynamicDistributionGroup
Use the New-DynamicDistributionGroup cmdlet to create a dynamic distribution group.
A dynamic distribution group queries Active Directory mail-enabled objects and builds the group
membership based on the results. The group membership is recalculated whenever an email
message is sent to the group.
Box 2, Box 3: RecipientFilter, RecipientContainer
Example: This example uses the RecipientFilter parameter to create the dynamic distribution group
Pacific Northwest in the Users container in the contoso.com domain. The Pacific Northwest dynamic
distribution group contains all mailbox users found anywhere in the contoso.com domain who have
a State/Province field that equals “Washington” or “Oregon”.
New-DynamicDistributionGroup -Name “Pacific Northwest” -Alias “Pacific_Northwest” –
OrganizationalUnit “contoso.com/Users” -RecipientFilter {((RecipientType -eq ‘UserMailbox’) -and
((StateOrProvince -eq ‘Washington’ -or StateOrProvince -eq ‘Oregon’)))} -RecipientContainer
“contoso.com”

New-DynamicDistributionGroup
https://technet.microsoft.com/en-us/library/bb125127(v=exchg.150).aspx



Leave a Reply 4

Your email address will not be published. Required fields are marked *


MCSE

MCSE

Box 1: New-DynamicDistributionGroup

Marty McFly

Marty McFly

MCSE is right, you can use the recipient filter unless you use new-dynamicdistributiongroup I just tried it in )O365 powershell.

TBE

TBE

Agree with MCSE.
Box 1: New-DynamicDistributionGroup.

Answer image is wrong, explanation is correct.