Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Re: Comparison of two AD user queries

Reply
 
Old 04-08-2009   #1 (permalink)
gimme_this_gimme_that


 
 

Re: Comparison of two AD user queries

>I have to believe
Quote:

> that binding to the object with the DN is faster still, since there is no
> real searching involved.
Would fetching with the GUID be faster than searching on DN - or about
the same?

My System SpecsSystem Spec
Old 04-08-2009   #2 (permalink)
gimme_this_gimme_that


 
 

Re: Comparison of two AD user queries

Quote:

>I believe all attributes (except operational ones) are loaded into the local property cache.
Which attributes are operational attributes?
My System SpecsSystem Spec
Old 04-09-2009   #3 (permalink)
Richard Mueller [MVP]


 
 

Re: Comparison of two AD user queries


<gimme_this_gimme_that@xxxxxx> wrote in message
news:c37803b3-5332-4020-a43f-5c2825b134f1@xxxxxx
Quote:

>
Quote:

>>I believe all attributes (except operational ones) are loaded into the
>>local property cache.
>
> Which attributes are operational attributes?
Operational attributes, also called constructed, are ones where the values
are not saved in active directory. Instead, they are calculated on request
from other attributes. There are about 36. For example: allowedAttributes,
canonicalName, createTimeStamp, modifyTimeStamp, primaryGroupToken,
tokenGroups.

To retrieve the value of an operational attribute use the GetInfoEx and
GetEx methods of the user object. For example:

Set objUser = GetObject("LDAP://cn=Jim Smith,ou=West,dc=MyDomain,dc=com")
objUser.GetInfoEx Array("canonicalName"), 0
strName = objUser.GetEx("canonicalName")
Wscript.Echo strName

The GetInfoEx method makes AD calculate the value. ADO also makes AD
calculate the value, so nothing extra is required when you use ADO.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
User Group Virtualization ESX/Hyper-V comparison and demonstration Virtual Server
SQL Queries PowerShell
can I do inner queries? or joins? PowerShell
PowerShell User Guide - Comparison Operators - error? PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46