IIS 5 on W2k server.
I would like to modify/remove/set IIS properties programmatically.
I found this code on MSDN:
==========================================
Dim CurrServer
Set CurrServer = GetObject("IIS:/LocalHost/W3svc/1")
CurrServer.LogExtFileBytesSent = True
CurrServer.SetInfo
==========================================
However when I try to run this code in a VBS file (I log on machine as
Administrator) I obtain
this error:
==========================================
Windows Script Host
Script: C:\Log.vbs
Line: 2
Carachter: 1
Error: 0x80005000
Code: 80005000
Origin: (null)
==========================================
I can run this type of script instead:
==========================================
Set obj3 = GetObject("IIS://LOCALHOST/W3SVC/1/Root")
Obj3.AccessFlags = 513
obj3.SetInfo
==========================================
How can I obtain the first script to run?
Any help much appreciated
Regards.
--
Fabrizio Maccarrone
--
YAMSSQLU
(Yet Another MSSQL User)