I've
done this kind of thing but (as Jeremy has said) it seems really inefficient to
have to make all those calls.
As an
example, suppose I have a list of students whose accounts I want to deactivate.
I'll get that as a list of sAMAccountNames (because the student ID number is
used for their username). I now need to query active directory to get the
distinguishedname and then bind to that object to do things to
it.
For
some purposes I know I can use getobject("WinNT://domain/samaccountname") but
that isn't always suitable. What I want is something which allows me to specify
the sAMAccountName in the LDAP: string.
As a
complete aside, is there a reason for the odd capitalisation which always seems
to be used for sAMAccountName? SAMAccountName would seem much
better?
Steve
|
Title: Message
- RE: [ActiveDir] VBSCRIPT ADSI IADs Get Method Steve Rochford
- RE: [ActiveDir] VBSCRIPT ADSI IADs Get Method joe
- RE: [ActiveDir] VBSCRIPT ADSI IADs Get Method Alain Lissoir
- RE: [ActiveDir] VBSCRIPT ADSI IADs Get Method McCann, Danny