O'Reilly logo

Windows Server 2008 Portable Command Guide: MCTS 70-640, 70-642, 70-643, and MCITP 70-646, 70-647 by Darril Gibson

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 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 ...

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