|
|
|||||||
Hi! All of our users need a new mail address. So i Want to add that new e-mail address. I put a post a part of my script below here. Now my problem is that if i add tha new address the old address get delete so i save the old one and then try 2 add both and the works . My Problem is that both E-mail Addresse get primary and i can not delete Primary address in Active Directory So how do i add the 2 adresse and make Sure that only the new is primary I dont know if this command will work i cant seem to get working ADS_PROPERTY_UPDATE Code:
|
||||||||
|
|
|||||||
Sorry! Found the Solution if you write smtp with uppecase it becomes the Primary SMTP and if you use lowercase if becomes secondary. So my array will look this if i want my $newmail as primary and the $oldmail as secondary. Code:
|