Explanation/Reference:
Explanation:
We can use the Set-Mailbox cmdlet with the EmailAddresses parameter to configure the email addresses for user's mailbox. In this question, we need to modify the Skype for Business address. Skype for Business addresses are notated by placing SIP: in front of the address whereas Exchange email addresses are notated by placing SMTP: in front of the address.
In the PowerShell script:
The $ID variable is used to store the users identity.
The $OldAddress variable is used to store the users old Skype for Business address SIP:
[email protected].
The $NewAddress variable is used to store the users new Skype for Business address SIP:User1-
[email protected].
In the following PowerShell command:
Set-Mailbox -Identity $ID -EmailAddresses@{add = "$NewAddress"; remove = "$Old Address"} The EmailAddresses parameter adds the new address by (add = "$NewAddress") and removes the old address (remove = "$Old Address") thus changing the Skype for Business address as required in the question.