Your company uses Microsoft Exchange Online. Employees frequently need to change their primary email addresses. The mess

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Your company uses Microsoft Exchange Online. Employees frequently need to change their primary email addresses. The mess

Post by answerhappygod »

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?
Your Company Us 1
Your Company Us 1 (56.08 KiB) Viewed 83 times
A. Set-Mailbox -Identity $UserPrincipalName -EmailAddresses @{add="SMTP:" + "$NewPrimary"; remove="SMTP:" + "$OldPrimary"}
B. Set-Mailbox -Identity $UserPrincipalName -EmailAddresses @{add="SMTP:" + "$NewPrimary", "smtp:" + "$OldPrimary"; remove="SMTP:" + "$OldPrimary"}
C. Set-Mailbox -Identity $UserPrincipalName -EmailAddresses @{add="SMTP:" + "$NewPrimary"}
D. Set-Mailbox -Identity $UserPrincipalName -PrimarySmtpAddress $NewPrimary
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!

This topic has 1 reply

You must be a registered member and logged in to view the replies in this topic.


Register Login
 
Post Reply