2025-04-27 07:49:33 -04:00

75 lines
3.4 KiB
HTML
Raw Blame History

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>ADSI Features</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
TempString = navigator.appVersion
if (navigator.appName == "Microsoft Internet Explorer"){
// Check to see if browser is Microsoft
if (TempString.indexOf ("4.") >= 0){
// Check to see if it is IE 4
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
}
else {
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
}
}
else if (navigator.appName == "Netscape") {
// Check to see if browser is Netscape
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
}
else
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
//-->
</script>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Window_OnLoad()
Dim frmContents
On Error Resume Next
If Not Parent Is Nothing Then
Set frmContents = Parent.Contents
If Not frmContents Is Nothing Then
frmContents.Window.TOCSynch_Click
End If
End If
End Sub
//--></SCRIPT><META NAME="DESCRIPTION" CONTENT="Internet Information Services reference information">
<META HTTP-EQUIV="PICS-Label" CONTENT='(PICS-1.1 "<http://www.rsac.org/ratingsv01.html>" l comment "RSACi North America Server" by "inet@microsoft.com <mailto:inet@microsoft.com>" r (n 0 s 0 v 0 l 0))'>
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META NAME="MS-IT-LOC" Content="Internet Information Services">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H2><A NAME="_k2_adsi_features"></A><SUP></SUP>ADSI Features</H2>
<P>This section discusses ADSI objects and container objects, and how each is implemented and exposed. The IIS Admin Objects are exposed by IIS as an implementation of ADSI. ADSI provides a standard syntax for addressing IIS configuration data. The IIS namespace consists of the IIS Admin Objects and the metabase. </P>
<P>This section contains:
<UL type=disc>
<LI><A HREF="/iishelp/iis/htm/asp/aogu3cs3.htm">ADSI Objects</A>: Discusses ADSI objects and how they can be used to configure IIS.</li>
<LI><A HREF="/iishelp/iis/htm/asp/aogu3boz.htm">ADSI Container Objects</A>: Describes ADSI container objects and their functionality in IIS.</li>
</UL>
<P>You can reference IIS Admin Objects by their metabase path. For example, the IIS Admin Object for the first Web site on the computer named MyComputer would be addressed by the ADSI path (<B>ADsPath</B>) IIS://MyComputer/W3SVC/1. </P>
<P>The following VBScript code demonstrates how you might use a script to reference the path to the first Web site (<28>/1) to open the IIS Admin Object. In the example, this object is associated with the metabase key for the Web site, which resides on the local machine.</P>
<P><span class=le><B>Note&nbsp;&nbsp;&nbsp;</B></span>You can use the string "LocalHost" instead of the actual machine name.</P>
<PRE><CODE>&lt;%
Dim VSvrObj
Set VSvrObj = GetObject("IIS://LocalHost/W3SVC/1")
Response.Write "Value of ServerComment = " &amp; VSvrObj.ServerComment
%&gt;
</CODE></PRE>
<hr class="iis" size="1">
<p align="center"><em><a href="../../../common/colegal.htm">&copy; 1997-2001 Microsoft Corporation. All rights reserved.</a></em></p>
</BODY>
</HTML>