Home > Software design >  Add Sip to proxyaddress attribute in AD using powershell
Add Sip to proxyaddress attribute in AD using powershell

Time:06-22

I have username, and email address. Couldn’t find a simple command to add sip address in AD attributes.

SIP:emiladdress

Please help

Thanks

CodePudding user response:

You need to get the AD user you want to update then append the ProxyAddresses property (attribute) then set the AD user. I neat and easy way to do this is to use the Active Directory cmdlets instancing feature.

$ADUser = Get-ADUser <UserName> -Properties ProxyAddresses

$ADUser.ProxyAddresses = $ADUser.ProxyAddresses  = "sip:[email protected]"

Set-ADUser -Instance $ADUser
  • Related