Programmatically Setting IIS Log Fields

IIS 6.0 VBScript: Set IIsWebServerObj = GetObject("IIS://localhost/W3SVC") For Each Object In IIsWebServerObj     If (Object.Class = "IIsWebServer") Then          WScript.Echo "Updating: " & Object.ServerComment                Set IIsWebSiteObj = GetObject("IIS://localhost/W3SVC/" & Object.Name)         IIsWebSiteObj.Put "LogExtFileDate",             True         IIsWebSiteObj.Put "LogExtFileTime",             True         IIsWebSiteObj.Put "LogExtFileClientIp",         True         IIsWebSiteObj.Put "LogExtFileUserName",         True         IIsWebSiteObj.Put "LogExtFileSiteName",         True         IIsWebSiteObj.Put "LogExtFileComputerName",    …

1