PrepAway - Latest Free Exam Questions & Answers

Which Windows PowerShell command should you run?

You administer Microsoft Exchange Online for Fabrikam, Inc. Fabrikam’s Exchange Online
tenant domain name is fabrikam.onmicrosoft.com.
You verify the domain fabrikam.com in the Office 365 admin center and instruct other
administrators to configure new Exchange Online users with fabrikam.com as the primary
SMTP domain. The fabrikam.com domain is not federated.
A user reports that his reply-to address is displayed to external email message recipients as
User1@fabrikam.onmicrosoft.com.
You need to configure the user’s mailbox to meet the following requirements:
The user’s reply-to address must be User1@fabrikam.com.
The email address User1@fabrikam.onmicrosoft.com must function as a secondary email
address for the user.
Which Windows PowerShell command should you run?

PrepAway - Latest Free Exam Questions & Answers

A.
Set MsolUser -UserPrincipalNameUser1@fabrikam.onmicrosoft.com AlternateEmailAddresses user1@fabrikam.com

B.
Set-Mailbox -Identity user1@fabrikam.onmicrosoft.com -ForwardingAddress “User 1”

C.
Set-Mailbox -Identity user1@fabrikam.onmicrosoft.com WindowsEmailAddressUser1@fabrikam.com

D.
Set-Mailbox -Identity user1@fabrikam.onmicrosoft.com -EmailAddresses
user1@fabrikam.onmicrosoft.com, user1@fabrikam.com

17 Comments on “Which Windows PowerShell command should you run?

  1. User1 says:

    Well the command is ok, but the answer has typo’s and shouold be:
    Set-Mailbox -Identity user1@fabrikam.onmicrosoft.com -WindowsEmailAddress user1@fabrikam.com

    A gives an alternate e-mail address, which isn’t what we want
    B gives an error and if it would work it gave us a forward address
    C is correct (but with typo’s)
    D would be right is the e-mail addresses ar turned arround (first the fabrikam.com address, then the onmicrosoft.com address.




    0



    0
  2. Justin Thompson says:

    I don’t think C is correct because it would set the primary email address as user1@fabrikam.com while leaving the loging account as user1@fabrikam.onmicrosoft.com, but it doesn’t satisfy the requirement to leave user1@fabrikam.onmicrosoft.com as a secondary email address. I also don’t see the -WindowsEmailAddress switch in the set-mailbox command. Maybe it was there before but TechNet no longer lists it:

    https://technet.microsoft.com/en-us/library/aa998651%28v=exchg.150%29.aspx

    Answer D comes close, but has them in the wrong order. My guess is that the list of proposed answers are incorrect.

    http://o365info.com/manage-email-address-using-powershell/




    0



    0
  3. TonyS says:

    Hi Justin,

    I’ve just tried both propositions. Both commands work fine. They both set the PrimaryEmailAddress (showed in bold in the admin portal) to user1@fabrikam.onmicrosoft.com.

    I noticed a little difference. for me [C] is simpler and more secure. I also guess that the exame want you to understand that using WindowsEmailAddress sets the primary EMail Address.

    The difference is with [D] you need to provide the FULL list of EmailAddress you want for the user. It doesn’t APPEND. It redefines the list. For instance I add a SIP address before running the command and the command proposed in [D] simply redefines the list of EmailAddresses for that user and therefore deletes my SIP adress.

    I think C is correct because it’s easier and more secure.

    Thanks




    0



    0
    1. Justin Thompson says:

      Hi TonyS,

      I think you maybe correct. Question #67 is similar and when testing the -WindowsEmailAddress it worked the same for me as you described. It’s not documented well on the TechNet article, but is easier.




      0



      0
      1. korpski says:

        Technet docs on Set-Mailbox now does reflect the WindowsEmailAddress parameter’s behavior.

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

        And the answer has to be C, not D, as D won’t change the current setup. By not using smtp: (lowercase) or SMTP: (uppercase) prefixes, and putting the onmicrosoft address first, executing D continue to make the onmicrosoft e-mail address the primary (sent-from) one.

        Technet docs on both the EmailAddresses parameter and parameter:

        ** EmailAddresses **

        The EmailAddresses parameter specifies all the email addresses (proxy addresses) for the recipient, including the primary SMTP address. In on-premises Exchange organizations, the primary SMTP address and other proxy addresses are typically set by email address policies. However, you can use this parameter to configure other proxy addresses for the recipient. For more information, see Email address policies.

        Valid syntax for this parameter is []:,[]:…. The optional value specifies the type of email address. Some examples of valid values include:
        SMTP The primary SMTP address. You can use this value only once in a command.
        smtp Other SMTP email addresses.
        X400 X.400 addresses in on-premises Exchange.
        X500 X.500 addresses in on-premises Exchange.

        If you don’t include a value for an email address, the value smtp is assumed. Note that Exchange doesn’t validate the syntax of custom address types (including X.400 addresses). Therefore, you need to verify that any custom addresses are formatted correctly.

        To specify the primary SMTP email address, you can use any of the following methods:
        – Use the value SMTP on the address.
        – The first email address when you don’t use any values, or when you use multiple values of smtp.
        – If it’s available, use the PrimarySmtpAddress parameter instead. You can’t use the EmailAddresses parameter and the PrimarySmtpAddress parameter in the same command.

        To replace all existing proxy email addresses with the values you specify, use the following syntax: “[]:”,”[]:”….

        To add or remove specify proxy addresses without affecting other existing values, use the following syntax: @{Add=”[]:”,”[]:”…; Remove=”[]:”,”[]:”…}.

        ** WindowsEmailAddress **

        The WindowsEmailAddress parameter specifies the Windows email address for this recipient. This is a common Active Directory attribute that’s present in all environments, including environments without Exchange. Using the WindowsEmailAddress parameter on a recipient has one of the following results:

        – In on-premises environments where the recipient is subject to email address policies (the EmailAddressPolicyEnabled property is set to the value True for the recipient), the WindowsEmailAddress parameter has no effect on the WindowsEmailAddress property or the primary email address value.

        – In cloud environments or in on-premises environments where the recipient isn’t subject to email address policies (the EmailAddressPolicyEnabled property is set to the value False for the recipient), the WindowsEmailAddress parameter updates the WindowsEmailAddress property and the primary email address to the same value.

        The WindowsEmailAddress property is visible for the recipient in Active Directory Users and Computers in the E-mail attribute. The attribute common name is E-mail-Addresses, and the Ldap-Display-Name is mail. If you modify this attribute in Active Directory, the recipient’s primary email address is not updated to the same value




        1



        0
  4. Ryan says:

    if you run the help command…

    help Set-Mailbox -Parameter WindowsEmailAddress

    -WindowsEmailAddress
    The WindowsEmailAddress parameter specifies the Windows email address for this recipient. This is a common Active Directory attribute that’s present in all environments, including environments without Exchange. Using the WindowsEmailAddress parameter
    on a recipient has one of the following results:

    * In on-premises environments where the recipient is subject to email address policies (the EmailAddressPolicyEnabled property is set to the value True for the recipient), the WindowsEmailAddress parameter has no effect on the WindowsEmailAddress
    property or the primary email address value.
    * In cloud environments or in on-premises environments where the recipient isn’t subject to email address policies (the EmailAddressPolicyEnabled property is set to the value False for the recipient), the WindowsEmailAddress parameter updates the
    WindowsEmailAddress property and the primary email address to the same value.
    The WindowsEmailAddress property is visible for the recipient in Active Directory Users and Computers in the E-mail attribute. The attribute common name is E-mail-Addresses, and the Ldap-Display-Name is mail. If you modify this attribute in Active
    Directory, the recipient’s primary email address is not updated to the same value.

    So reading that doesn’t sound like it will update the primary SMTP address. Am i missing something?




    0



    0

Leave a Reply