Sylvia
2007-08-03 16:13:47 UTC
I found this script in the repository, and it works great. however, I need
to modify it so that when I look at the Home directory tab "Read" is checked
off" and "Execute permissions" say "Scripts only". I can't find any
directions on how to do that.
How can I modify this script for that?
Thanks!
strComputer = "."
Set objWMIService = GetObject _
("winmgmts:{authenticationLevel=pktPrivacy}\\" _
& strComputer & "\root\microsoftiisv2")
Set objWebService = objWMIService.ExecQuery _
("Select * From IISWebService")
arrBindings = Array(0)
Set arrBindings(0) = _
objWMIService.Get("ServerBinding").SpawnInstance_()
arrBindings(0).IP = "192.168.1.1"
arrBindings(0).Port = "8383"
arrBindings(0).Hostname = "atl-ws-01"
For Each objItem in objWebService
objItem.CreateNewSite "Test Site", arrBindings, _
"c:\inetpub\wwwroot"
Next
to modify it so that when I look at the Home directory tab "Read" is checked
off" and "Execute permissions" say "Scripts only". I can't find any
directions on how to do that.
How can I modify this script for that?
Thanks!
strComputer = "."
Set objWMIService = GetObject _
("winmgmts:{authenticationLevel=pktPrivacy}\\" _
& strComputer & "\root\microsoftiisv2")
Set objWebService = objWMIService.ExecQuery _
("Select * From IISWebService")
arrBindings = Array(0)
Set arrBindings(0) = _
objWMIService.Get("ServerBinding").SpawnInstance_()
arrBindings(0).IP = "192.168.1.1"
arrBindings(0).Port = "8383"
arrBindings(0).Hostname = "atl-ws-01"
For Each objItem in objWebService
objItem.CreateNewSite "Test Site", arrBindings, _
"c:\inetpub\wwwroot"
Next