how to select from multi valued attribute in Active Directory

Discussion in 'Scripting' started by Thijs, Oct 2, 2007.

  1. Thijs

    Thijs Guest


    I need to set a value within departmentNumber. there are 4 values to select
    How can I select one of these values and make it the "active" one.

    I need to do this with vbscript.

    Thanks in advance
    Thijs, Oct 2, 2007
    1. Advertisements

  2. First, I don't know of a departmentNumber attribute. Perhaps you added this
    to the schema. Next multi-valued attributes do not designate any of the
    values as "active". I don't think the values are in any particular order
    either. If you read all the values into an array, cleared the attribute,
    then read the values back into the attribute in a desired order, then they
    might stay in that order, although I have not tried. I think I need
    clarification of what you mean by the "active" one.
    Richard Mueller [MVP], Oct 2, 2007
    1. Advertisements

  3. Thijs

    Thijs Guest

    thanks for the reply,

    What I mean with the "active"one is de value that is selected.
    the possible values are 677951, 670231, 673104 and 804787
    677951 is the one to be selected.
    I'm going to try with clearing the attribute first.

    Thijs, Oct 3, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.