|
|||
| adsiFAQ@Win32Scripting... Code snippets that explain frequently asked ADSI related questions. | |||
|
![]() For script developers, ADSI is probably the most important and most used tool available for authoring network administration or automation scripts. ADSI can be utilized without regard to the underlying scripting language. Additionally, when a the scripting language is being employed with WSH the syntax is consistent between the languages. What is ADSI? ADSI is a set of Active X Controls that abstracts the capabilities of directory services from different network providers to present a single set of directory service interfaces. Administrators can use ADSI services to manage network resources in a directory service, no matter which network environment contains the resource. You can use ADSI to manage the NetWare Bindery, NetWare NDS tree, the NT SAM, An LDAP compliant directory, such as Microsoft Exchange Server 5.5 or the Active Directory in NT 5.0. Following are examples in vbscript, accessing a user object in the various namespaces that ADSI supports.
Netware Bindery:
Netware NDS: **For page formatting purposes a break was placed in the statement above. In your script the statement should be on ONE line**
Windows NT 4.0:
Active Directory or LDAP: **For page formatting purposes a break was placed in the statement above. In your script the statement should be on ONE line** Below are some examples on using ADSI to perform some common network management tasks. Most of these examples were taken from the Visual Basic Site 15 seconds and modified to reflect proper usage with the Windows Scripting Host. http://www.15seconds.com |
||










