exam questions

Exam 70-347 All Questions

View all questions & answers for the 70-347 exam

Exam 70-347 topic 3 question 2 discussion

Actual exam question from Microsoft's 70-347
Question #: 2
Topic #: 3
[All 70-347 Questions]

Your company uses Microsoft Exchange Online. Employees frequently need to change their primary email addresses.
The messaging operations team has requested a script to simplify the process of changing email addresses.
The script must perform the following actions:
✑ Obtain employee information from a .csv file that has a header line of UserPrincipalName,CurrentPrimaryAddress,NewPrimaryAddress.
✑ Change employees' primary email addresses to the values in the NewPrimaryAddress column.
✑ Retain employees' current email addresses as secondary addresses.
You create the following Windows PowerShell script to read the .csv file. Line numbers are included for reference only.

You need to complete the script to meet the requirements.
Which Windows PowerShell command should you insert at line 06?

  • A. Set-Mailbox -Identity $UserPrincipalName -WindowsEmailAddress $NewPrimary
  • B. Set-Mailbox -Identity $UserPrincipalName -PrimarySmtpAddress $NewPrimary
  • C. Set-Mailbox -Identity $UserPrincipalName -ExternalEmailAddress $NewPrimary
  • D. Set-MailUser -Identity $UserPrincipalName -EmailAddresses@{add = "SMTP:" + "$NewPrimary"; remove="SMTP:" + "$OldPrimary"}
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
The following PowerShell cmdlet can be used to change the [email protected] users primary email address to [email protected]. The [email protected] email address will continue to function as a secondary email address.
Set-Mailbox -Identity [email protected] WindowsEmailAddress [email protected]
In this question, the $UserPrincipalName variable is populated with the users user principle name. The $UserPrincipalName variable can be used to populate the identity parameter in the Set-Mailbox cmdlet.
The $NewPrimary variable is populated with the required new email address of the user. The $ NewPrimary variable can be used to populate the
WindowsEmailAddress parameter in the Set-Mailbox cmdlet.
References: https://www.cogmotive.com/blog/office-365-tips/change-primary-smtp-address-without-changing-the-login-name-on-office-365

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...