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 froma. 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”}
Not sure as it says “Retain employees’ current email addresses as secondary addresses”
0
0
I think the script is removing the SMTP from the current (old) address. Once you remove the SMTP from the proxyAddress attribute it is non longer primary. Not sure if answer D. is deleting the OldPrimary ?
0
0
Option “A” add secondary mail address as new reply address, but is this what we have to do?
0
1
Looks like answer A is the correct one. This command doesnot delete the “current mailaddress”, like answer D will do!
0
1
what is the correct answer?
0
0
This change of Primary Address, is for Exchange Online, but the parameter WindowsEmailAddress says: “The WindowsEmailAddress parameter specifies the Windows email address for this mailbox. This address isn’t used by Exchange.”
For me it’s B. Any comments?
1
0
I believe B is the correct answer as well.
(A) uses the Windows email address property, which is not used by exchange. (http://technet.microsoft.com/en-us/library/bb123981%28v=exchg.150%29.aspx)
(B) inputs the new address as the primaryemailaddress
(C) – I’m not sure that externalemailaddress is a property of the command
(D) – Removes the old email address, which the question explicitly asks you not to do.
0
1
I was wrong about this, I think A is correct.
0
1
I think you are right about B, -PrimarySMTPAddress parameter exist and the new value may not replace the primary and make that additional address(old address).
0
0
Okay, finally:
It cannot be A because windowsemailaddress is not used by exchange.
It cannot be B because primarysmtpaddress is ONLY used by exchange on-premise < just learned this
It cannot be C because externalemailaddress is not a property of set-mailbox
I believe it is D (and the person who made the dump made a type) because EmailAddresses is an array and can be treated as one. Read the question carefully of the exam if you take it. But those are my two cents.
0
0
Agree with this. B cannot be used as it doesn’t support O365
D does work. Also capitalized SMTP is treated as primary in exchange. This script is not removing the old email address, just what is set as primary.
0
0
D is the answer…..
It is not removing the email address, its simply removing the “SMTP:” prefix. The proxyaddress with “SMTP:” in front of it is the primary.
eg.
“SMTP:user@domain.com” = SMTP reply address
“smtp:user@domain.com” or “user@domain.com” = additional alias
0
0
D
0
0
It is A.
I did it in my trial I´m sure
0
0
The problem with D is that it’s removing the old primary address which needs to remain in place as a secondary.
0
0
The answer must be B. Here is why
The question refrains to mailboxes and NOT mail users, so Answer D is not the answer, leaving us A, B , or C.
C cannot be the answer because an -ExternalEmailAddress applies to mail users who have external email addresses.
A is not the answer because you do not set the WindowsEmailAddress on a mailbox, you set the PrimarySMTPAddress
Answer should be A!
0
0
yesman ,
what is the answer u said A is not answer then u said answer should be A
…
0
0
Im sorry I was incorrect.
Set-Mailbox -PrimarySMTPAddress does not exist.
The answer is actually A. The -WindowsEmailAddress sets the primary email address and retains the old as a secondary proxy, hence B.
Answer is A.
0
0
yesman, you say ‘The answer is actually A…’, then ‘…, hence B.’ Then you say answer is A, make up your mind!
0
0
The answer is D and heres why
A. The WindowsEmailAddress property is not used by Exchange
B. The PrimarySMTPAddress is only available for Exchange 2013 on-premise
C. The ExternalEmailAddress parameter does not exist in the set-mailbox cmdlet
D. The Set-Mailuser cmdlet is for Exchange 2013 on-line and the EmailAddresses parameter is used to specify the email alias of the mail user. It can be used to set any type of address and may be used for multiple addresses by comma delimiting the values.
This leaves D as the only possible answer, although I am not sure the syntax is correct
0
1
Except D: removes the current email address and the question states that it should remain in place as the secondary address.
A is correct. Validated by myself and at least two others in this post.
1
0
It is A I have just tested it and the -WindowsEmailAddress is available in the set-mailbox and changes the primary whilst retaining the secondary.
0
0
I agree! A is correct. B cannot be used with Exchange Online, only with Exchange 2013 on-premise.
0
0
100% A is the answer read here http://o365info.com/manage-email-address-using-powershell/
“Method 2#2 – Adding (replacing) primary E-mail address | Set the property – WindowsEmailAddress
This is the preferred method because, when using this method, the additional E-mail address of the Exchange Online recipient will not be removed.
In this method, we “address” other Exchange Online mailbox property named – WindowsEmailAddress.
The Exchange Online mailbox property – WindowsEmailAddress, “contain” the recipient Primary E-mail address.
In case that we set the value of the E-mail address stored in the WindowsEmailAddress property, the Exchange Online Recipient Primary E-mail address is also updated.”
0
0
It is definitly answer A, i’ve also tested it!
I did:
Get-Mailbox -Identity jmuller@domain.com | Select-Object emailaddresses
EmailAddresses
————–
{smtp:jmuller@domain.onmicrosoft.com, SMTP:jmuller@domain.com…
As you can see, jmuller@domain.com is the primary Address.
After I do
Set-Mailbox -Identity jmuller@domain.com -WindowsEmailAddress jmuller@domain.onmicrosoft.com
and did again the Get-Mailbox cmdlet, I end up in the following:
EmailAddresses
————–
{smtp:jmuller@domain.com, SMTP:jmuller@domain.onmicrosoft.com,
So it changes the SMTP Prefixes of both
This is what we wanted.
0
0
I agree with Dirk A is the correct answer. Tested it as well with additional aliases to the onmicrosoft domain as that one might be treated special. I.e. I don’t think it can be removed.
The -WindowsEmailAddress makes the new address the primary but retains the old primary as a secondary.
0
0
I Agree. A is the answer.
0
0
I agree with dirk too, A is the correct answer.
http://o365info.com/manage-email-address-using-powershell/
0
0
in the article
the property in gthe cmdlet is EmailAddress not WindowsEmailAddress,
I agree with Tony
0
0
answer is fuckin A.
0
0
fuckin A. fuckin A. http://o365info.com/manage-email-address-using-powershell/
also, D is just removing the SMTP..another microsoft trick question.!
0
0
Answer would be A.
https://www.cogmotive.com/blog/office-365-tips/change-primary-smtp-address-without-changing-the-login-name-on-office-365
0
0
i cant be D because is there only a line to complete. WindowsEmailAddress is the answer, agree with dirk.
PS C:\office365\Setupfiles> get-Mailbox -Identity admin | Select-Object -ExpandProperty EmailAddresses
SMTP:admin@apgc.com.ar
PS C:\office365\Setupfiles> set-mailbox -Identity $viejo -WindowsEmailAddress $nuevo
PS C:\office365\Setupfiles> get-Mailbox -Identity admin | Select-Object -ExpandProperty EmailAddresses
SMTP:admin@content.apgc.com.ar
smtp:admin@apgc.com.ar
PS C:\office365\Setupfiles> set-mailbox -Identity $viejo -WindowsEmailAddress $viejo
PS C:\office365\Setupfiles> get-Mailbox -Identity admin | Select-Object -ExpandProperty EmailAddresses
SMTP:admin@apgc.com.ar
smtp:admin@content.apgc.com.ar
0
0
Answer D is not the correct one. It starts with Set-MailUser …..
The correct answer is A. This option updates the windowsemailaddress attribute AND the primary email address to the same value.
https://technet.microsoft.com/en-us/library/bb123981(v=exchg.160).aspx
0
0
Answer is B. https://itss.untsystem.edu/services/messaging-services/changing-users-display-name-and-primary-smtp-address-exchange
0
0
Answer is A. 🙂
0
0
A is correct.
0
0
Answer is A – tested. ALso see this: https://www.cogmotive.com/blog/office-365-tips/change-primary-smtp-address-without-changing-the-login-name-on-office-365
and on technet it says the same… windowsemail changes primary email in cloud, but not on onpremise. it only changes the primarysmtpaddress for exchange but not the UPN / login.
0
0
It’s A you god damn naggers!
0
0
BTW, NEW 70-347 PDF Dumps from Google Drive for Free: https://drive.google.com/open?id=0B-ob6L_QjGLpfjdPREVKSzl1Qk92OExLdVF0RjN1QWZJdWhhbDEycFZKNzZMMUwtQ1pxeFE
0
0
VMware Certified Advanced Professional 6 (Desktop and Mobility Deployment) – The industry-recognized VCAP6-DTM Deploy certification validates that you know how to deploy and optimize VMware Horizon 6 (with View) environments. It demonstrates that you have the knowledge and skills essential to leverage best practices to provide a scalable and dependable Business Mobility platform for your business. Some of the subjects involve: Configuring and managing Horizon View components, configuring cloud pod archituecture, configuring Group Policy settings related to Horizon View, Configuring and optimizing desktop images for Horizon View & Mirage, Configuring and managing App Volumes AppStacks, Configuring desktop pools, Configuring and deploying ThinApp packaged applications, Configuring VMWare Identity Manager, etc.Szumigalski.com was created by Sebastian to spread his enthusiasm for PowerShell & VMWare. Sebastian is an IT qualified professional employed in Singapore for longer than 15 years who’s all of the time searching for innovative expertise to sharpen his technical abilities & knowledge. Since then, Sebastian has joined PowerShell User Group & VMWare VMug group, and has also been getting involved in most of the gatherings held in Singapore. This website will highlight exactly how Sebastian are able to automate some of his day-to-day tasks using PowerShell. You will find study guides available for the VCAP6-DTM examination, which are professionally compiled by Sebastian. Sebastian is certified with VCAP6-DTM, and is skilled with virtualization & server maintenance from four years experience in automation. The need for VMWare prepared admins and technicians are ever-increasing in the modern tech marketplace. Become familiar with more details on PowerShell & VMWare at Szumigalski.com!
https://szumigalski.com
0
0
The following is the provided answers to choose from:
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
0
0