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-Mailbox -Identity $ID -PrimarySmtpAddress $NewAddress

B.
Set-MsolUser -UserPrincipalName $ID –ProxyAddresses @{add=”$NewAddress”;
remove=”$OldAddress”}

C.
Set-CsUser -Identity $ID –ProxyAddresses @{add=”$NewAddress”; remove=”$OldAddress”}

D.
Set-CsUser –Identity $ID –SipAddress $NewAddress

Explanation:
You can easily change the SIP address by running the Set-CsUser cmdlet:
Set-CsUser –Identity “Ken Myer” –SipAddress sip:kenmyer@litwareinc.com
Incorrect:
Not A: Set-Mailbox is used for Exchange Online and On-premises Exhange, but not for Lync.
Not B: Set-MsolUser is used for Azure, Office 365, and Windows Intune but not for Lync.
Not D: We need to change the SIP address, not the ProxyAddresses.

Modify the SIP Address of an Enabled Lync Server User
http://blogs.technet.com/b/nexthop/archive/2011/03/21/usermodifysip.aspx

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

    1. M P says:

      A: PrimarySmtpAddress is for On-Premises only

      B: Set-MsolUser is for basic properties, and parameters -UserPrincipalName and -ProxyAdresses are bogus.

      C: Parameter -ProxyAdresses is bogus.

      D: Correct




      0



      0
  1. JCD says:

    It can’t be D:
    “The Set-CsUser cmdlet is included in the set of cmdlets that are available to Skype for Business Online administrators. However, you can’t currently use the Set-CsUser cmdlet to manage Skype for Business Online. The only exception is that you can use this cmdlet to set the AudioVideoDisabled parameter. This is by design.”
    Source: https://support.microsoft.com/en-us/kb/2909916




    0



    0
  2. JCD says:

    All right.
    I think I got the truth.
    From another test exam, I got a similar question. But the answers were different.
    One was:
    set-mailbox -identity $ID -emailaddresses @{add=”$newaddress”;remove=”$oldaddress”}

    Which I’ve just tested. And it worked well.




    0



    0
    1. TDogg says:

      When attempting to execute “D” you get the following error: “Unable to set “SipAddress”. This parameter is restricted within Remote Tenant PowerShell.”
      (See JCD’s Post above)

      I can confirm that the following works as I tried it myself.
      set-mailbox -identity $ID -emailaddresses @{add=”$newaddress”;remove=”$oldaddress”}

      Lastly, please note that all of the above code does not use quotes around string values, THIS IS NOT CORRECT.




      0



      0
    1. tomj says:

      The script start Windows PowerShell session with Micorsoft Exchange powershell module not businees powershell module.

      $Cred = Get-Credential
      $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

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




      0



      0

Leave a Reply