Quote:
quote:Originally posted by mega
Found adsutil.vbs in C:\Inetpub\AdminScripts on my NT 5.1 and it's a VBScript file containing 2545 lines of code!
- mega
|
I've found it on another server at work in that same location - so i have a copy now too:D. I know its a relatively big file, but I wasn't suggesting that Adam use it as a basis for creating his own scripts. I was thinking more along the lines of:
- include adsutil.vbs in the files deployed for the release
- add some script lines to the install to run adsutil.vbs supplying the necessary params to create the virtual directory
- delete adsutil.vbs at the end of the install
Here's an example of the script lines I was thinking of:
cscript adsutil.vbs delete W3SVC/1/Root/NewSite
cscript adsutil.vbs CREATE_VDIR W3SVC/1/Root/NewSite
cscript adsutil.vbs APPCREATEPOOLPROC W3SVC/1/Root/NewSite
cscript adsutil.vbs SET W3SVC/1/Root/%1/AppFriendlyName NewSiteName
cscript adsutil.vbs SET W3SVC/1/Root/%1/AccessFlags 513
cscript adsutil.vbs SET W3SVC/1/Root/%1/Path "physical path to files"
hth
Phil