For various reasons you may need to modify the SIP address for eg if you have acquired a new company and you want them to use the existing domain name in their SIP address.
For a Single User, you can run the below command:
Set-CsUser -Identity "Anil Kumar Nudurupati" -SipAddress "anilkumar.nudurupati@newsipdomain.com"
If the same task if you have to do for multiple users, then it will be a tedious task if you perform via Control Panel or by running above powershell command. For this you need to use the below PowerShell Script.
For Bulk Users
$users=Import-Csv .\users.csv
foreach ($user in $users)
{
$oldAddress = $user.SipAddress
$newAddress = $oldAddress -replace "@oldsipdomain.com", "@newsipdomain.com"
Set-CsUser -Identity $user.Identity -SipAddress $newAddress
}
For a Single User, you can run the below command:
Set-CsUser -Identity "Anil Kumar Nudurupati" -SipAddress "anilkumar.nudurupati@newsipdomain.com"
If the same task if you have to do for multiple users, then it will be a tedious task if you perform via Control Panel or by running above powershell command. For this you need to use the below PowerShell Script.
For Bulk Users
$users=Import-Csv .\users.csv
foreach ($user in $users)
{
$oldAddress = $user.SipAddress
$newAddress = $oldAddress -replace "@oldsipdomain.com", "@newsipdomain.com"
Set-CsUser -Identity $user.Identity -SipAddress $newAddress
}
No comments:
Post a Comment