Chapter 15. Manipulating Domains

IN THIS CHAPTER

Working with domains via Active Directory Services Interface (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 Set  objNTDomain  =  GetObject("WinNT://DOMAIN") Set  objADDomain  =  GetObject("LDAP://dc=domain,dc=com")

After you have a reference to the domain, you can start working with its properties. That is 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, ...

Get VBScript, WMI, and ADSI Unleashed: Using VBScript, WMI, and ADSI to Automate Windows® Administration 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.