locked
VB Script for adding msExchCoManagedByLink RRS feed

  • Question

  • Hi Team,

    I am trying to add users to msExchCoManagedByLink attribute using vbscript. When ever I am executing the script, it 's removing the existing entry and only adding the new entry. If try to add multiple users, only the last user name will be added. Below is the sample script.

    Set oGROUP = GetObject("LDAP://cn=testGroup,OU=TestOU,DC=TEST,DC=com")

    oGROUP.Put "msExchCoManagedByLink", distinguished name of the user.

    oGROUP.setinfo

    could you please help me.


    Regards, Lazy Admin

    • Moved by Bill_Stewart Wednesday, August 21, 2013 4:28 PM Abandoned thread
    Monday, July 15, 2013 3:44 PM

All replies

  • The object is an ADPropertyValuesCollection.  It has Add, Clear, Count and Value properties and methods.  These can be accessed through PowerShell Net AD provider and the Net Directory classes.


    ¯\_(ツ)_/¯

    Monday, July 15, 2013 5:15 PM
  • Also be aware that the exchange properties are only available on objects that have an Exchange mailbox.  Security groups do not have those properties.


    ¯\_(ツ)_/¯

    Monday, July 15, 2013 5:20 PM