PrepAway - Latest Free Exam Questions & Answers

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.
Hot Area:

PrepAway - Latest Free Exam Questions & Answers

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”

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

5 Comments on “How should you complete the Windows PowerShell command?


Leave a Reply