Exchange 2010 Console and SIP address

Looking at the exchange management console in 2010 SP3, the SIP address is the same as the primary email address (fname.lname@domain.com), but is there a way to change the SIP address to be the fname.lname@differentdomain.com
example smtp address: joe.doe@home.com, but sip address needs to joe.doe@local.com, is there a way to do this for every user on a mailbox database or OU? Any help would be great and thanks.
LVL 26
timgreen7077Exchange EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
You want to do that once for each user?
timgreen7077Exchange EngineerAuthor Commented:
yes once for each user.
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
Get-ADUser -Filter * -SearchBase 'OU=Test,DC=domain,DC=com' -Properties proxyaddresses |
  % {
    Set-ADUser $_ -Replace @{ProxyAddresses = @($_.proxyaddresses -Replace "SIP:(.*)@domain.com","SIP:$1@otherdomain.com") }
  }

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

timgreen7077Exchange EngineerAuthor Commented:
I have tried the script and it changes the domain but their is no longer a user name (fname.lname) associated. The SIP address is now "@newdomain.com" instead of "fname.lname@newdomain.com" Is there a way this can be corrected.
footechCommented:
Quick mod to Qlemo's (no points for me, I know he'd catch it soon).
Get-ADUser -Filter * -SearchBase 'OU=Test,DC=domain,DC=com' -Properties proxyaddresses |
  % {
    Set-ADUser $_ -Replace @{ProxyAddresses = @($_.proxyaddresses -Replace "SIP:(.*)@domain.com",'SIP:$1@otherdomain.com') }
  }

Open in new window

Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
Damn. I never intended to use double quotes, for exactly that reason :/.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.