Jump to content

Recommended Posts

Hey, :hello:

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 email

objItem.Put "mailNickname", Brugernavn

objItem.SetInfo

'***********''This do not work

objItem.Put "mailNickname", Brugernavn

objItem.SetInfo

objItem.Put "mailNickname", Efternavn

objItem.SetInfo

'************This do not work either

objItem.PutEx ADS_PROPERTY_UPDATE, "mailNickname", _

Array("email1", "email2", "email3")

objItem.SetInfo

And now my brain is emty.... :wacko:

i hope someone can help or push me in the right direction :w00t:

Link to comment
Share on other sites


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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...