Which Windows PowerShell command should you insert at line 06?

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:

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"}

Answer: A

Explanation:

The following PowerShell cmdlet can be used to change the [email protected] user’s 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] CWindowsEmailAddress [email protected]

In this question, the $UserPrincipalName variable is populated with the user’s user principle name. The $UserPrincipalName variable can beused to populate the Cidentity 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 C 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

Latest 70-347 Dumps Valid Version with 314 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments