Which Windows PowerShell command should you run next?

You are the Office 365 administrator for your company. The company uses Microsoft
Exchange Online and Microsoft Lync Online.
An employee named User1 has the user name, email address, and Lync address
[email protected].
The employee requests that you change only his Lync address to User1 –
[email protected].
You start a Windows PowerShell session and run the following commands, providing your
admin account credentials when prompted:

You need to complete the process of updating the employee’s Lync address without
affecting any other addresses.
Which Windows PowerShell command should you run next?

You are the Office 365 administrator for your company. The company uses Microsoft
Exchange Online and Microsoft Lync Online.
An employee named User1 has the user name, email address, and Lync address
[email protected].
The employee requests that you change only his Lync address to User1 –
[email protected].
You start a Windows PowerShell session and run the following commands, providing your
admin account credentials when prompted:

You need to complete the process of updating the employee’s Lync address without
affecting any other addresses.
Which Windows PowerShell command should you run next?

A.
Set-MsolUser -UserPrincipalName $ID -ProxyAddresses@{add = “$NewAddress”;
remove = “$OldAddress”>

B.
Set-Mailbox -Identity $ID -EmailAddresses@{add = “$NewAddress”; remove = “$Old
Address”}

C.
Set-Mailbox -Identity $ID -WindowsEmailAddress $NewAddress

D.
Set-CsUser -Identity $ID -ProxyAddresses@{add = M$NewAddress”;
remove=”$OldAddress”>



Leave a Reply 21

Your email address will not be published. Required fields are marked *


Bas van der Kolk

Bas van der Kolk

D is not correct. Set-CsUser is only available for the “AudioVideoDisabled” Parameter. Correct answer should be A

Amr Eid

Amr Eid

Actually, there is another set of answers;

A. Set-Mailbox-Identity$ID-PrimarySmtpAddress$NewAddress
B. Set-MsolUser-UserPrincipalName$ID–ProxyAddresses@{add=”$NewAddress”; remove =”$Old Address”} C. Set-CsUser -Identity $ID –ProxyAddresses @{add=”$NewAddress’’; remove=”$OldAddress”}
D. Set-CsUser –Identity $ID –SipAddress $NewAddress

Correct Answer: D

You can easily change the SIP address by running the Set-CsUser cmdlet, for example:
Set-CsUser –Identity “Ken Myer” –SipAddress sip:[email protected]

So, this way you wouldn’t affect any other addresses, which is one of the requirements. Answer “B” in both answers’ sets are partially correct because they will change the addresses to the new address but at the same time will remove the old emails addresses, which is not one of the requirements.

limmontreefree

limmontreefree

I’m not sure.

D. Set-CSUSer Modifies Lync Server properties for an existing user account. Properties can be modified only for accounts that have been enabled for use with Lync Server. This cmdlet was introduced in Lync Server 2010.
http://technet.microsoft.com/en-us/library/gg398510.aspx
but I can find “-ProxyAddresses” Parameter.

A. The Set-MsolUser cmdlet is used to update a user object. This cmdlet should be used for basic properties only. The licenses, password, and User Principal Name for a user can be updated through the Set-MsolUserLicense, Set-MsolUserPassword, and Set-MsolUserPrincipalName cmdlets respectively.
http://msdn.microsoft.com/en-us/library/azure/dn194136.aspx.

But neither I have found “-ProxyAddresses” Parameter.

limmontreefree

limmontreefree

Sorry I want to say in option “D”.
But I can NOT find “-ProxyAddresses” parameter.

User1

User1

D = wrong: The set-csUser CMDLet doesnt have the parameter Proxyaddress

A = wrong: The set-MsolUser doesn’t have the parameter ProxyAddress either

C = wrong: This would set the primairy mailaddress to the new address (i doubt even if it wouldnt give you an error since you try to set the sip as default reply address)

B = the only right answer! You try to do something with mail addresses, the hang on a mailbox, so you should set one of the the mailbox properties

Hammer

Hammer

Agree with User1.

Limey

Limey

B is the correct answer.
Because when you change the email address the SIP address is changed also.

Muhammad

Muhammad

Hi All,

The question says “WITHOUT AFFECTING ANY OTHER ADDRESSES”. So don’t you think Set-Mailbox cmdlet will change the email address of the user?

Tom

Tom

Hi Muhammad

You dont affect other addresses when you add and remove only the SIP addresses.

Justin Thompson

Justin Thompson

I think B is the closest to the answer but the command listed wouldn’t change only his Lync address because they never specifically provide the SIP value. The command provided would change more than his SIP address. I think it would look something like this:

Set-mailbox $OldAddress -EmailAddress SIP:$NewAddress

https://technet.microsoft.com/en-us/library/dd335189%28v=exchg.150%29.aspx?f=255&MSPPError=-2147217396

Justin Thompson

Justin Thompson

Correction….the variables specify the SIP value so B is correct.

Spaceworm

Spaceworm

B is correct the PS Set-Mailbox has to be used in this instance as you are making a change. Therefore this limits the answer down to B and C

since C does not get rid of the old address then this just leaves C

Spaceworm

Spaceworm

Correction… The answer is B

B is correct the PS Set-Mailbox has to be used in this instance as you are making a change. Therefore this limits the answer down to B and C

since C does not get rid of the old address then this just leaves C

Spaceworm

Spaceworm

B is correct the PS Set-Mailbox has to be used in this instance as you are making a change. Therefore this limits the answer down to B and C

since C does not get rid of the old address then this just leaves B

Massimo

Massimo

B is correct, but sure this is quite a convoluted process to change a SIP address; you’re actually editing low-level attributes *on the Exchange Online mailbox*, completely bypassing Office 365 and not even touching Lync Online.

see this here

see this here

It’s remarkable in favor of me to have a site, which is good for my knowledge. thanks admin|