Chapter 36. Manipulating Active Directory with Visual Basic Scripts

This chapter provides information and commands concerning the following topics:

Connecting to Active Directory with a VB script

Creating an OU with a VB script

Creating a user account with a VB script

Modifying the tombstone lifetime

Tip

You should be familiar with the concept of VB scripting when preparing for the 70-640, 70-642, and 70-647 exams.

Connecting to Active Directory with a VB Script

When working with Active Directory, the first step is to connect the instance of Active Directory. The basic syntax to connect with a Visual Basic (VB) script is

set objdom =getobject("LDAP://dn")

Note

LDAP, which is an acronym for Lightweight Directory Access Protocol, must ...

Get Windows Server 2008 Portable Command Guide: MCTS 70-640, 70-642, 70-643, and MCITP 70-646, 70-647 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.