DirectScript is a collection of ADSI (Active Directory Services Interfaces) compatible COM (Component Object Model) objects that an administrator can use to manage large computer networks.
The easiest way of using these COM objects is from a Visual Basic application. However, you can also access them through VB Script, VBA, or JScript.
An Example
Here is a very simple example of using DirectScript objects to find
all domains in your network and to print the names in a debug
window. Enter this code in the Form_Load event of a Visual Basic
form:
Dim NSpace As IADsContainer
Dim Domain As IADsDomain
Set NSpace = GetObject("NTDS:") 'You are now connected to
DirectScript
For Each Domain In NSpace
Debug.Print "Domain:" & Domain.Name
Next Domain