WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

ADSI
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Instantiating Application Objects with ADSI

Keywords:   Instantiating Application Objects ADSI

Question:

Is it possible to instantiate application objects using ADSI?

Using OLE...

dao = objectopen("DAO.DBEngine.35")
ws = dao.CreateWorkspace("JetWorkspace", "admin", "")
db = ws.OpenDatabase("c:\data\access\ea.mdb")
.
.
.
objectclose(db)
objectclose(ws)
objectclose(dao)
I saw code to look inside an Exchange 5.5 dbase.

Answer:

Microsoft defines ADSI as follows: "Active Directory™ Service Interfaces (ADSI) is a set of COM interfaces used to access the capabilities of directory services from different network providers in a distributed computing environment, to present a single set of directory service interfaces for managing network resources."

In other words ADSI is a set of objects, properties and methods. Automation (OLE) clients like WinBatch, Java Script or VB Script can instantiate ADSI objects like they instantiate other OLE objects.

The ADSI extender does a lot of the work for you so you don't have to know all of the objects, properties and methods of ADSI to accomplish network administrative tasks. Additionally, the extender makes the functionality of "non-automation" COM interfaces available to you so you can do things you can not do with other Automation (OLE) clients.


Article ID:   W14519
Filename:   Instantiating Application Objects with ADSI.txt
File Created: 2000:09:26:14:21:38
Last Updated: 2000:09:26:14:21:38