header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Bulk change proxy addresses
Last Post 01 Apr 2011 08:06 AM by ChevyNovaLN. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
dmxopUser is Offline
New Member
New Member
Posts:9
Avatar

--
28 Mar 2011 10:30 PM
    Hi All,

    I am looking to change the SIP proxyaddress for a number of AD accounts.  The addresses are currently in the format of SIP:firstname.lastname@domain.com.  I would like to change them to SIP:firstname.lastname@newdomain.com.

    I have managed to get a list of OCS enabled users with get-qaduser -LDAPFilter '(msRTCSIP-Userenabled=TRUE)'  This gives me the CN of the user accounts. 

    I have kind of managed to get what I want with the following commands:

    Remove SIP address from user
    get-qaduser "test" | remove-qadproxyaddress -pattern 'SIP:*'

    Add SIP address for user
    get-qaduser "test" | add-qadproxyaddress -customtype 'sip' -address 'firstname.lastname@newdomain.com'

    These commands work but how to I add the new address in the firstname.lastname@newdomain.com format?


    Can anyone help?

    Many Thanks
    Mark
    ChevyNovaLNUser is Offline
    Basic Member
    Basic Member
    Posts:121
    Avatar

    --
    01 Apr 2011 08:06 AM
    I would assume you would get the firstname and lastname values and set them to a string.

    There's probably a better way, but this is how I would do it just throwing something together:

     
    $user = get-qaduser "test" 
    $Firstname = $user.firstname
    $LastName = $user.lastname
    $domain = "newdomain.com"
    
    $user | add-qadproxyaddress -customtype 'sip' -address "$Firstname.$lastName@$domain"
    
    Brian / ChevyNovaLN
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer