PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.win.server.scripting > how to select from multi valued attribute in Active Directory
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
how to select from multi valued attribute in Active Directory

Réponse
 
LinkBack Outils de la discussion
Vieux 02/10/2007, 14h30   #1
Thijs
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut how to select from multi valued attribute in Active Directory

Hi,

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

I need to do this with vbscript.

Thanks in advance
  Réponse avec citation
Vieux 02/10/2007, 16h39   #2
Richard Mueller [MVP]
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to select from multi valued attribute in Active Directory


"Thijs" <Thijs@discussions.microsoft.com> wrote in message
news:EC290F24-78C5-4BF9-8EF0-6D1E98E36C80@microsoft.com...
> Hi,
>
> I need to set a value within departmentNumber. there are 4 values to
> select
> from.
> How can I select one of these values and make it the "active" one.
>
> I need to do this with vbscript.
>
> Thanks in advance


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
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--


  Réponse avec citation
Vieux 03/10/2007, 07h49   #3
Thijs
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to select from multi valued attribute in Active Directory

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


"Richard Mueller [MVP]" wrote:

>
> "Thijs" <Thijs@discussions.microsoft.com> wrote in message
> news:EC290F24-78C5-4BF9-8EF0-6D1E98E36C80@microsoft.com...
> > Hi,
> >
> > I need to set a value within departmentNumber. there are 4 values to
> > select
> > from.
> > How can I select one of these values and make it the "active" one.
> >
> > I need to do this with vbscript.
> >
> > Thanks in advance

>
> 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
> Microsoft MVP Scripting and ADSI
> Hilltop Lab - http://www.rlmueller.net
> --
>
>
>

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h44.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10022 seconds with 11 queries