The IIsLogModules object is an ADSI container object that contains the collection of IIsLogModule objects. You can use the IIsLogModules object to manage log modules at the computer level.
The IIsLogModules object is an ADSI container object.
IIS://MachineName/logging
Where MachineName can be any name or "LocalHost".
varReturn = object.{Method}
ADSI Object Methods | Standard methods for ADSI objects |
ADSI Container Object Methods | Standard methods for ADSI container objects |
Common Object Methods | Methods, other than ADSI methods, common to all IIS Admin Objects |
<% ' Get log properties for a log module at a server Dim LoggingModules, CurrentObj ' Get the object for the first web server Set CurrentObj = GetObject("IIS://LocalHost/W3SVC/1") ' Access the log modules at the computer level Set LoggingModules = GetObject("IIS://LocalHost/logging") ' Loop through the installed modules to find the currently ' selected module at this server If CurrentObj.LogPluginClsid <> "" Then For Each LogModule in LoggingModules If LogModule.LogModuleID = CurrentObj.LogPluginClsid Then Response.Write LogModule.Name & "<BR>" End If Next ' Display a property of the current module Response.Write CurrentObj.LogFileDate End If %>