please dont rip this site

Using the IIS Admin Objects

You can use the IIS Admin Objects to configure your IIS installation, creating new FTP and Web servers, virtual directories, and other IIS elements, and also changing settings that affect IIS operation. Your IIS configuration information is stored as values in the metabase, called metabase properties, and you use the IIS Admin Objects to change these configuration values. Individual IIS Admin Objects correspond to specific types of keys in the metabase. With simple ASP scripts, you can use the IIS Admin Objects to create powerful and flexible custom administration applications for remote administration of your IIS installation. The remote Internet Service Manager (HTML) for IIS was developed using the IIS Admin Objects with VBScript and JScript™. The source code files for this program are located in \system32\inetsev\iisadmin in your system directory.

The IIS Admin Objects expose a hierarchical namespace of objects where each object has an ADsPath, similar to a Uniform Resource Locator (URL), that is prefixed with IIS:// followed by the name of the computer on which IIS is running, followed by the path of the object in the metabase. For example, IIS://MyComputer/W3SVC refers to the IIsWebService object for the machine named MyComputer. The object associated with the machine on which IIS is running is the IIsComputer object, and contains all of the other IIS Admin Objects directly or indirectly. To get a reference to a named object, you use the GetObject function in Visual Basic®, VBScript or other scripting languages. For example, you can retrieve the current value of MaxBandwidth for the computer named MyComputer with the following VBScript in an .asp file. You can use LocalHost instead of MyComputer to access the computer on which IIS is running.

<% 
Dim ComputerObj 
Dim MaxBW 
Set ComputerObj = GetObject("IIS://MyComputer") 
MaxBW = ComputerObj.Get("MaxBandwidth") 
' You could also use MaxBW = ComputerObj.MaxBandwidth 
%> 
 

Note ASP scripts that access the metabase require administrator privileges on the machine on which IIS is running. When you execute these scripts from a remote machine, you must connect through a secure connection, such as the Windows NT Challenge/Response authentication method. It is suggested that you create a server or directory for your administrative .asp files and set the directory security authentication method to Windows NT Challenge/Response for the server or directory.

Note For security purposes, out-of-process applications cannot access the metabase. It is recommended that you retain this default behavior unless special circumstances require otherwise. There are two ways you can modify this behavior, but each introduces some security risk. One approach is to give the IWAM_machinename account access to the metabase, which will allow access to the metabase for all out-process-applications created with this default identity. Another approach is to change the identity of the specific out-of-process-package to some other account identity and give that account access to the metabase. This introduces some risk but less than that introduced by giving metabase access to the IWAM_machinename account.

The topics in this section explain how to use the ADSI methods for the IIS Admin Objects, and provide a sample program using these methods.


© 1997 by Microsoft Corporation. All rights reserved.


file: /Techref/inet/iis/iis/htm/sdk/aoii6h9v.htm, 5KB, , updated: 2002/5/22 16:36, local time: 2024/4/28 18:16,
TOP NEW HELP FIND: 
3.14.132.214:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://www.massmind.org/techref/inet/iis/iis/htm/sdk/aoii6h9v.htm"> Using the IIS Admin Objects</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to www.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .