PrepAway - Latest Free Exam Questions & Answers

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
User1@contoso.com.
The employee requests that you change only his Lync address to User1 –
Sales@contoso.com.
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?

PrepAway - Latest Free Exam Questions & Answers

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”>

21 Comments on “Which Windows PowerShell command should you run next?

    1. Amr Eid says:

      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:kenmyer@litwareinc.com

      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.




      0



      0
  1. limmontreefree says:

    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.




    0



    0
  2. User1 says:

    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




    1



    0
  3. Muhammad says:

    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?




    0



    0
  4. Spaceworm says:

    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




    1



    0
  5. Spaceworm says:

    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




    0



    0
  6. Spaceworm says:

    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




    0



    0
  7. Massimo says:

    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.




    0



    0

Leave a Reply