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”}
D is wrong for 2 things
1, Set-MailUser
2, remove=”SMTP:” + “$OldPrimary”
Correct answer should be A
Its A.
With explanation
A: Parameter -WindowsEmailAddress “[..]the WindowsEmailAddress parameter updates the WindowsEmailAddress property and the primary email address to the same value.”
B: Parameter -PrimarySmtpAddress is only on-premises
C: Parameter -ExternalEmailAddress is bogus for Set-Mailbox.
D: Syntax – Set-mailuser cmdlet is for “mail users” hence:no exchange mailboxes, “add” and “remove” is used for that not replacing.
So A is missing something to be correct as a part of the solution is:
“Retain employees’ current email addresses as secondary addresses.”
the final answer a or d most of answer in other site sad D
D: Cant be correct.
“Retain employees’ current email addresses as secondary addresses.”
So you would not use “remove” only “add”.
A is right
Here is a mailbox with multiple addresses in the EmailAddresses attribute, the default is the one with SMTP in front
Get-Mailbox biggyd | select DisplayName,*address*
DisplayName : David ****
AddressBookPolicy :
ForwardingAddress :
ForwardingSmtpAddress :
OfflineAddressBook :
JournalArchiveAddress :
GeneratedOfflineAddressBooks : {}
AddressListMembership : {\Mailboxes(VLV), \All Mailboxes(VLV), \All
Recipients(VLV), \All Users…}
EmailAddresses : {SIP:BiggyD@***.onmicrosoft.com,SMTP:Big
gyD@******.onmicrosoft.com,smtp:DavidL@****
*****.onmicrosoft.com,
SMTP:BiggyD@******.onmicrosoft.com}
HiddenFromAddressListsEnabled : False
EmailAddressPolicyEnabled : False
PrimarySmtpAddress : BiggyD@******.onmicrosoft.com
WindowsEmailAddress : BiggyD@******.onmicrosoft.com
I then use the command in A
set-Mailbox -identity biggyd -WindowsEmailAddress DavidL@******.onmicrosoft.com
and check again and the default is now changed, hence the former primary/default becomes secondary (hopefully the SIP address will change in due course…)
Get-Mailbox biggyd | select DisplayName,*address*
DisplayName : David ******
AddressBookPolicy :
ForwardingAddress :
ForwardingSmtpAddress :
OfflineAddressBook :
JournalArchiveAddress :
GeneratedOfflineAddressBooks : {}
AddressListMembership : {\Mailboxes(VLV), \All Mailboxes(VLV), \All
Recipients(VLV), \All Users…}
EmailAddresses : {smtp:BiggyD@******.onmicrosoft.com,
SMTP:DavidL@******.onmicrosoft.com, SIP:Big
gyD@******.onmicrosoft.com,SMTP:BiggyD@***.onmicrosoft.com,smtp:DavidL@******.o
nmicrosoft.com}
HiddenFromAddressListsEnabled : False
EmailAddressPolicyEnabled : False
PrimarySmtpAddress : DavidL@******.onmicrosoft.com
WindowsEmailAddress : DavidL@******.onmicrosoft.com
I thank you
I wasnt sure about D beeig incorrect.
1) Remove SMTP is right, type:SMTP is valid only for primary address
SMTP The primary SMTP address. You can use this value only once in a command.
smtp Other SMTP email addresses.
Valid syntax for this parameter is :,:…. The optional value specifies the type of email address.
If you don’t include a value for an email address, the value smtp is assumed.
2) in the question is not specified if its about Mailboxes or MailUsers, can be both
Practical test:
Create MailUser with primary SMTP [email protected] and external smtp same. Run command :
Set-MailUser -Identity [email protected] -EmailAddresses @{add = “SMTP:” + “[email protected]”; remove=”SMTP:” + “[email protected]”}
result: primary address is changed, external smtp stayed same, original primary didnt appear as secondary
Create Mailbox [email protected]. Run command:
Set-Mailbox -Identity [email protected] -WindowsEmailAddress [email protected]
result: primary address is changed, original primary address is secondary now
Answer A is correct.
If you are interested.. :
VERBOSE: [13:34:47.295 GMT] Set-Mailbox : The properties changed on the object ‘test’ (CN=test,OU=Contoso.com users,DC=Contoso,DC=com) are: “{ EmailAddresses[proxyAddresses]={ ‘X500:/o=ExchangeLabs/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=a72eda5307c148c4848bc8fc48e16cde-test’, ‘smtp:[email protected]’, ‘smtp:[email protected]’, ‘SMTP:[email protected]’ }, UMDtmfMap[msExchUMDtmfMap]={ ‘firstNameLastName:8378’, ‘lastNameFirstName:8378′, ’emailAddress:6398378′ },
WindowsEmailAddress[mail]=’[email protected]’, Extensions[proxyAddresses]={ }, PrimarySmtpAddress[proxyAddresses]=’[email protected]’, IndexedPhoneNumbers[msExchUMDtmfMap]={ }, OriginalPrimarySmtpAddress[]=’[email protected]’, OriginalWindowsEmailAddress[]=’[email protected]’ }”.
The answer is D, however they have it written wrong here.
D is actually:
D.
Set-MailUser -Identity $UserPrincipalName -EmailAddresses@{add = “SMTP:” + “$NewPrimary”; add = “smtp:” + “$OldPrimary”; remove=”SMTP:” + “$OldPrimary”}
A is correct. I have tested it (and it changed the PrimarySMTPAddress as well as retained the old address as a secondary).
A is correct, changing the WindowsEmailAddress property updates the *primary* email address, while retaining other existing ones.
B and C use a wrong syntax.
D probably uses a wrong syntax too (can’t check it now), but even if it worked, it would remove the old address, violating the requirements.
A
Its fucking A, everyone and their mom’s gaping O-ring has explained why. D has the wrong syntax, accept it and move on. Stop confusing other people
Well!
Just took my 70-347 exam few days ago for the second time, finally passed!
Scored 922/1000!
Some questions were from this site, HOWEVER, some questions were reworded and changed (you’d better learn the newest 70-347 dumps).
And, the Yes/No questions and Case Studies questions that you need to think well before answering them.
DO NOT CHOOSE THE ANSWERS BEFORE THINKING CAREFULLY!!!
A lot of new questions (Skype for Business and not Lync for example).
For the newest 70-347 dumps, I recommend you to get it here:
http://www.passleader.com/70-347.html
(194q VCE and PDF)
All new Qs are available, and old Qs and wrong As have been updated, which are the most valid 70-347 dumps now!
By the way, part of that 194Q dumps are FREE here:
https://doc.co/bz5jCS
Good Luck! Wish You Pass Exam 70-347 Luckily!!
Def A
“•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”
https://technet.microsoft.com/en-us/library/bb123981(v=exchg.160).aspx