To modify or set the SIP address for users in Exchange using PowerShell, you can use Exchange Management Shell cmdlets to update the user's email addresses, specifically the SIP (Session Initiation Protocol) address, which is stored as an EUM proxy address in Exchange.
Here is a detailed approach based on Exchange 2013/2016 and later versions:
Modifying an Existing SIP Address for a User
Retrieve the mailbox and its email addresses:
powershell
$mbx = Get-Mailbox username
View current email addresses including SIP addresses:
powershell
$mbx.EmailAddresses
Modify the SIP address:
The SIP address is stored as an EUM proxy address with the prefix eum: and includes a phone-context parameter that corresponds to the UM dial plan.
Example to change the SIP address at a specific index (e.g., index 1):
The SIP address format is typically eum:[EMAIL_ADDRESS];phone-context=DialPlan where phone-context is your UM dial plan domain.
You must have the necessary permissions to modify mailbox properties.
Always test scripts on a small set of users before applying broadly.
You can also modify SIP addresses via the Exchange Admin Center (EAC) under Recipients > Mailboxes > Email Addresses, but PowerShell is preferred for automation[1][6].
This approach ensures SIP addresses are consistent with primary SMTP addresses and can be created or updated as needed via PowerShell.