Microsoft KB Archive/301921

= INFO: The Security Context for Using IADsTools Methods =

Article ID: 301921

Article Last Modified on 2/12/2004

-

APPLIES TO


 * Microsoft Windows 2000 Service Pack 2
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Service Pack 2

-



This article was previously published under Q301921



SUMMARY
This article lists the functions that are wrapped by the IADsTools interface, and lists the required security context to use them.



MORE INFORMATION
Iadstools.dll is a dynamic-link library (DLL) that you can use to write Microsoft Visual Basic scripts (or to create your own programs) to extract specific types of data from Active Directory, and to use the new application programming interface (API) calls that are available in Windows 2000. For example, Iadstools.dll includes functions that make it easy to script replication between domain controllers with just a few lines of Microsoft Visual Basic Scripting Edition (VBScript) code.

Iadstools.dll is installed with the Windows 2000 Support Tools package. You can install this package from the Support\Tools folder on the Windows 2000 Server or Professional CD-ROM. For a complete list of all of the functions that are available in Iadstools.dll, see the Iadstools.doc file that is installed with the Windows 2000 Support Tools package.

Directory Service Functions
DsGetDcName

DsBind

DsBindWithCred

DsReplicaSync

DsReplicaSyncAll

DsMakePasswordCrendentials

GetPrivateProfileString

DsReplicaConsistencyCheck

DsReplicaGetInfo

Performance Data Functions
PdhVbGetOneCounterPath

PdhVbCreateCounterPathList

PdhVbGetCounterPathFromList

PdhOpenQuery

PdhCloseQuery

PdhVbAddCounter

PdhCollectQueryData

PdhVbIsGoodStatus

PdhVbGetDoubleCounterValue

Security Context and Permissions
There are several registry functions that permit the tool to read the registry information, and there are a few event-related keys that permit the process counters to work properly.

Registry Keys
Registry keys are controled by the access control lists (ACLs) on those keys.

