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!
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!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER