Michael_C Posted February 21, 2006 Share Posted February 21, 2006 Hey, I have a script where i ad users to AD.My problem is that i will ad more than one email account to the user (Excange is installed on domian controler)I can easy add one email to an user but not more'***********This work for one emailobjItem.Put "mailNickname", BrugernavnobjItem.SetInfo'***********''This do not workobjItem.Put "mailNickname", BrugernavnobjItem.SetInfoobjItem.Put "mailNickname", EfternavnobjItem.SetInfo'************This do not work eitherobjItem.PutEx ADS_PROPERTY_UPDATE, "mailNickname", _ Array("email1", "email2", "email3")objItem.SetInfoAnd now my brain is emty.... i hope someone can help or push me in the right direction Link to comment Share on other sites More sharing options...
RogueSpear Posted February 22, 2006 Share Posted February 22, 2006 What I would do is enumerate a user that has multiple email addresses first. That should give you a hint as to how to code in the opposite direction Link to comment Share on other sites More sharing options...
Michael_C Posted February 23, 2006 Author Share Posted February 23, 2006 Thanks, i will try that Link to comment Share on other sites More sharing options...
Michael_C Posted February 24, 2006 Author Share Posted February 24, 2006 This do add an email to an existing users email address, but i dont know how to include the type of email like SMTP.Do any1 know how to do that????objUser.PutEx ADS_PROPERTY_APPEND, "proxyAddresses", _ Array("OleBirger13@test.local")objUser.SetInfo Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now