Previous Section Table of Contents Next Section

Chapter 15. Manipulating Domains

IN THIS CHAPTER

You'll learn to work with OUs, domain settings, domain information, and other domain-related items. These items are the basis for ADSI domain management, and I'll provide plenty of examples to help get you started.

Working with domains via ADSI is often easier if you start at the top level. In the last chapter, you learned how to use both the WinNT and LDAP ADSI providers to get an object reference to the domain.


Dim objNTDomain, objADDomain

objNTDomain = GetObject("WinNT://DOMAIN")

objADDomain = GetObject("LDAP://dc=domain,dc=com")

After you have a reference to the domain, you can start working with its properties. That'll be the focus of the first part of this chapter; toward the end of this chapter, I'll show you how to work with the main domain-level objects, organizational units (OUs), by using the LDAP provider.

Obviously, you need to make sure you have ADSI running on your computer in order to use it. ADSI comes with Windows 2000 and Windows XP, as well as Windows Server 2003. It's available for, but not included with, Windows NT, Windows 95, Windows 98, and Windows Me. To install ADSI, simply install the Microsoft Directory Services client on these older operating systems. You can also visit the ADSI link located at www.microsoft.com/windows/reskits/webresources.

    Previous Section Table of Contents Next Section