Summary

   

Summary

Using the code segments found in this chapter, you can programmatically administer non-service-specific operations that affect the IIS server. Using an enumeration function, you can start at the root of the IIS namespace and show each node in the structure one layer at a time.

The IIsComputer object allows you to programmatically throttle server bandwidth for the WWW and FTP services as well as assign MIME types that will be inherited by all sites on the server.

Common to all IIS services is the ability to track user activity using industry standard log file formats. Using ADSI, you can programmatically manipulate the configuration of the log files.

Meanwhile, using the IIsContainer interface, you can programmatically create and delete WWW, FTP, SMTP, and NNTP sites. Additionally, you can create virtual directories using the programmatic methods found in this chapter. If you want to change the inherited properties for an individual virtual directory, Web directory or Web file, you must create an entry in the Metabase to block or establish a new set of properties. Programmatically manipulating these entries in the Metabase is easily performed using ADSI.

Lastly, you can programmatically manage the operation of individual sites by calling the Start , Stop , Pause , and Continue methods of the appropriate IIS service interface.

With such robust interfaces at your disposal, you will quickly find that ADSI can help you not only with enterprise automation tasks , but also with managing the impact of the explosive growth of Web technologies in your environment.


   
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