O'Reilly logo

Active Directory, 3rd Edition by Alistair G. Lowe-Norris, Robbie Allen, Joe Richards

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 20. Scripting with ADSI

This chapter covers the basics of ADSI and VBScript so that even inexperienced programmers and system administrators can understand how to write useful scripts. If you're used to another language, such as Visual Basic (VB), you'll find that it is very easy to convert the ADSI examples from VBScript, which is covered in detail in Chapter 28. In Chapter 28, we also cover how to add VBScript code to HTML web pages so that you can write web applications that utilize ADSI. In Chapter 22, we show you how to use ADO to search Active Directory and retrieve sets of records according to the powerful search conditions that you impose. Other chapters take this knowledge and extend it so that you can manipulate other aspects of Active Directory, such as permissions and auditing (Chapter 26) and modifying the schema (Chapter 27). Several additional references to web pages containing further information and documentation are included at the end of this chapter, so that you can find more information.

What Are All These Buzzwords?

First, let's take a look at some of the underlying technologies that you'll use when developing scripts.

ActiveX

ActiveX, the base component of a number of these technologies, enables software components to interact with one another in a networked environment, regardless of the language in which they were created. Think of ActiveX as the method developers use to specify objects that the rest of us then create and access with our scripts ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required