MS-100 Exam QuestionsBrowse all questions from this exam

MS-100 Exam - Question 7


You work for a company manages all their identities in the cloud.

After acquiring a new domain name, you are tasked with making sure that the primary email address of all new mailboxes uses the new domain.

Which of the following is the Microsoft Exchange Online PowerShell cmdlet that you should run?

Show Answer
Correct Answer: D

To ensure the primary email address of all new mailboxes uses the new domain, you should use the Set-EmailAddressPolicy cmdlet. This command is used to modify email address policies in Exchange Online, applying the specified email templates to new recipients as per the configuration defined.

Discussion

19 comments
Sign in to comment
JakeH
Nov 19, 2021

In exam today. Answer is correct

Jcbrow27
Nov 20, 2021

¿you cleared?

MomoLomo
Aug 25, 2021

This question is totally off You can't use that command in EXO it's only for group mailbox !!

stoneface
Jan 7, 2022

So what would you consider to be the answer to this question then?

zul_n
Oct 1, 2021

D is correct https://docs.microsoft.com/en-us/powershell/module/exchange/set-emailaddresspolicy?view=exchange-ps his cmdlet is available in on-premises Exchange and in the cloud-based service. Some parameters and settings may be exclusive to one environment or the other. Use the Set-EmailAddressPolicy cmdlet to modify email address policies. In Exchange Online, email address policies are only available for Microsoft 365 Groups. Set-EmailAddressPolicy [-EnabledPrimarySMTPAddressTemplate <String>]

Eggsamine
Oct 23, 2021

D can't be correct, as you yourself have said here, "In Exchange Online, email address policies are only available for Microsoft 365 Groups."

Wojer
Dec 16, 2021

Use the Set-EmailAddressPolicy cmdlet to modify email address policies. In Exchange Online, email address policies are only available for Microsoft 365 Groups.

Abdoulaz
Oct 26, 2021

The answer given is correct. See https://docs.microsoft.com/en-us/powershell/module/exchange/set-emailaddresspolicy?view=exchange-ps#example-3

sabin001
Nov 15, 2021

Email address policies define the rules that create email addresses for recipients in your Exchange organization whether this is Exchange on-premise or Exchange online. You can configure email address policies using the graphical interface of the Exchange Admin Center or by using PowerShell with the Set-EmailAddressPolicy cmdlet. The Set-EmailAddressPolicy cmdlet is used to modify an email address policy. The UpdateEmailAddressPolicy cmdlet is used to apply an email address policy to users.

Cisco
Oct 4, 2022

In the link supplied it says it applies to both on prem and Exchange Online so appears correct.

Tonio77s
Oct 11, 2021

Email address policies are only available for Exchange on Premise....

EG_Jack
Oct 19, 2021

No, They are not. The command set-emailaddresspolivy is available on-line too. https://docs.microsoft.com/en-us/powershell/module/exchange/set-emailaddresspolicy?view=exchange-ps

Eggsamine
Oct 23, 2021

They are available for Exchange Online but only for groups.

Eggsamine
Oct 23, 2021

They are available for Exchange Online but only for groups.

marcomartinez
Nov 18, 2021

the D answer is for exchange on prem, I believe the answer for EOL should be to make the domain as the default domain through 365 admin centre

Wojer
Nov 30, 2021

in EOL is available only for groups

Tibo49100
Apr 11, 2022

Wrong answer, command only available for O365 groups

vanr2000Option: D
Apr 6, 2023

You first need to apply the Set-EmailAddressPolicy. This will apply to any new account you create. If you want to apply the policy to the existing accounts, after you use the Set-EmailAddressPolicy cmdlet to modify an email address policy in an on-premises Exchange organization, you need to use the Update-EmailAddressPolicy cmdlet to apply the updated policy to recipients. https://learn.microsoft.com/en-us/powershell/module/exchange/set-emailaddresspolicy?view=exchange-ps

st2023
Apr 13, 2023

What does the command look like: Set-EmailAddressPolicy -Identity "Office 365 Groups" -EnabledEmailAddressTemplates "SMTP:@contoso.com","smtp:@contoso.onmicrosoft.com","smtp:@contoso.microsoftonline.com" https://learn.microsoft.com/en-us/powershell/module/exchange/set-emailaddresspolicy?view=exchange-ps#example-3 Command: https://learn.microsoft.com/en-us/powershell/module/exchange/set-emailaddresspolicy?view=exchange-ps#-enabledemailaddresstemplates

MartiFC
Aug 7, 2021

correct!

StartkabelsOption: D
Dec 6, 2022

Correction D

Don123
Jan 26, 2023

D. Set-EmailAddressPolicy To make sure that the primary email address of all new mailboxes uses the new domain in Exchange Online, you should run the Set-EmailAddressPolicy cmdlet. This cmdlet is used to modify the email address policies in your Exchange Online organization.

FeyenoordOption: A
Feb 24, 2023

After you use the Set-EmailAddressPolicy cmdlet to modify an email address policy in an on-premises Exchange organization, you need to use the Update-EmailAddressPolicy cmdlet to apply the updated policy to recipients.

Feyenoord
Feb 24, 2023

I am wrong, please delete my comment, answer given is correct, update emailadres policy is not available in EOL

Adebimpeidiat
Apr 17, 2023

D is the answer. You need to the Set-EmailAddressPolicy first before updating.

walther23Option: D
Apr 19, 2025

configurar primeramente las politicas de correos paraposteriormente actualizar