Summary

   

Summary

Using the IADs, IADsContainer, and IADsDomain interfaces, the developer or administrator can begin an administrative application workflow by creating scripts that enumerate all domains within the WinNT: namespace. After the user selects a domain to manage, he or she can then manage the account policy of the domain itself, or can further enumerate the contents of the container.

One of the most useful elements in an administrative workflow application is the ability to create and delete objects in a container. Computers, users, local groups, and global groups are easily created and removed from the domain by calling the Create and Delete methods of the IADsContainer interface.

To simplify the code required to perform additions and deletions in a given container, a Visual Basic class module can be created to allow your code to be used from any programming language supporting OLE automation. These functions allow a single line of code to be used in an application to create or delete any class of object or to manage the properties of the domain.

By coupling the enumeration methods used in this chapter with the programmatic object manipulation techniques discussed in the later chapters of Part II, extremely robust administrative applications can be developed with minimal effort.


   
Top


Windows NT. 2000 ADSI Scripting for System Administration
Windows NT/2000 ADSI Scripting for System Administration
ISBN: 1578702194
EAN: 2147483647
Year: 2000
Pages: 194
Authors: Thomas Eck

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net