O'Reilly logo

VBScript, WMI, and ADSI Unleashed: Using VBScript, WMI, and ADSI to Automate Windows® Administration by Don Jones

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

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