I've written a script to create a new "webserver" in IIS 5.0. When I use .SetInfo after the .Create() method, I get a Permission denied :/
Here is the code that fail:
Set objServer = objIIS.Create("IIsWebServer", WebsiteIndex)
Domain = "invisibleman.dk"
objServer.ServerSize = 1
objServer.ServerComment = Domain
objServer.ServerBindings = Array(":80:" & Domain, ":80:www." & Domain)
objServer.UseHostName = True
"WebsiteIndex" contains the next free webserver index, retrieved from a function I wrote for that purpose.
It creates the webserver (as I get an error from the IIS Manager about a non-fatal error.) but it doesn't save the properties of the webserver (which is what causes IIS Mngr. to give me an error)
I've been trying to solve this problem for a few hours now, so ANY help is GREATLY appreciated!
Thanks in advance :)