You are the administrator for Contoso, Ltd. You have an Office 365 tenant with Skype for Business Online. You have an account named [email protected].
You configure the account to use the same email address and Session Initiation Protocol (SIP) address.
You need to change the SIP address for the account to [email protected].
What should you do?
A.
In the Office 365 admin center, change the display name for [email protected] to [email protected].
B.
Run the following Windows PowerShell command:
Get-MsolUser –UserPrincipalName [email protected] | Set-MsolUser –UserPrincipalName [email protected]
C.
In the Office 365 admin center, add the SMTP address [email protected] to [email protected]
D.
Run the following Windows PowerShell command:
Set-MsolUserPrincipalName –UserPrincipalName [email protected] –NewUserPrincipalName [email protected]
Explanation:
The Set-MsolUserPrincipalName cmdlet is used to change the User Principal Name (user ID) of a user.Example: The following command renames [email protected] to [email protected].
Set-MsolUserPrincipalName -UserPrincipalName [email protected] -NewUserPrincipalName [email protected]
Set-MsolUserPrincipalName
https://msdn.microsoft.com/en-us/library/azure/dn194135.aspx
I dont think any of these are right. Command is this:
Set-CsUser –Identity Davindk -SipAddress “sip:[email protected]”
This command works for on-premise, not for online. And “You have an Office 365 tenant with Skype for Business Online”.
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
Exactly.
I just verified and when you run a Get-CsOnlineUser. Using Microsoft lab case below to show you.
1. Original Name (type my bad from the start FranSisco instead of FranCisco.
Get-CsOnlineUser -Identity “Fransisco” | select SipAddress, UserPrincipalName
SipAddress UserPrincipalName
———- —————–
sip:[email protected] [email protected]
2. Change the name using answer supplied by this question
Set-MsolUserPrincipalName -UserPrincipalName [email protected] -NewUserPrincipalName “[email protected]”
3. After waiting about 3 minutes this was the result.
Get-CsOnlineUser -Identity “Francisco” | select SipAddress, UserPrincipalName
SipAddress UserPrincipalName
———- —————–
sip:[email protected] [email protected]
So in conclusion D is correct! When you change the users UPN it is auto populated to Skype for Business Online