Set ad attribute and multivalue attribute
hi all,
i need set ad multivalue attribute "authorig" or "proxyaddresses" attributes.
how can ?
i've tryed using put method without results writing code $user.put("authorig" , $user.authorig + newvalue")
thanks
you need use putex method multi-valued attributes, similar below (not tested):
# constants modify multi-valued ad attributes.
$ads_property_clear = 1
$ads_property_update = 2
$ads_property_append = 3
$ads_property_delete = 4
objuser.putex ads_property_append, "authorig", [array]"newvalue"
objuser.setinfo()
-----
richard mueller - mvp directory services
Windows Server > Windows PowerShell
Comments
Post a Comment