Link to home
Start Free TrialLog in
Avatar of dy211
dy211

asked on

How to setup IIS with VB Script?

Basically what I do right now is I manually go to IIS

1. add UserAcct to sercurity in IIS
2. create web site name Test and set local path to C:\Inetpub\Test
3. set host name as test.website.com
4. create new virtual directory: op
5. set local path to C:\Inetpub\Test\MoreTest
6. Application name: op

How would I do automate all of that using VB script?

Thanks!
Avatar of dy211
dy211

ASKER

can anyone help please?? I dont have the MicrosoftIISv2 namespace, are there other ways to do it?
ASKER CERTIFIED SOLUTION
Avatar of dy211
dy211

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dy211

ASKER

Also, to give permission to folders work with the code below, but how would I do the samething to the website Test I created? can I set it during creation? if not how can I set it afterwards?
	set objShell = wscript.CreateObject("WScript.Shell")
        objShell.Run "cmd /c echo y | cacls ""C:\Inetpub"" /E /P ""Network Service:R"" ""Internet Guest Account:R"" ""Launch IIS Process:R""", 7, True

Open in new window

SOLUTION
Avatar of meverest
meverest
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial