command line - Create IIS 6 application pool -
can let me know how (or point me right direction) can create application pool , set application use newly created pool using commandline? application has been added iis need create new pool , use new application.
this gathered, in case else looking same thing:
rem // creates new application pool called myapppool cscript %systemdrive%\inetpub\adminscripts\adsutil.vbs create w3svc/apppools/myapppool iisapplicationpool rem // if running under different user name , password rem cscript %systemdrive%\inetpub\adminscripts\adsutil.vbs set w3svc/apppools/myapppool/wamusername "domain\username" rem cscript %systemdrive%\inetpub\adminscripts\adsutil.vbs set w3svc/apppools/myapppool/wamuserpass "pass" rem cscript %systemdrive%\inetpub\adminscripts\adsutil.vbs set w3svc/apppools/myapppool/apppoolidentitytype 3 ======================================== rem // create new virtual directory (creates vdir "test" , set d:\websites\mywebsite cscript %systemroot%\system32\iisvdir.vbs /create w3svc/1/root test d:\websites\mywebsite ================================= rem // assign myapppool "test" web site cscript %systemdrive%\inetpub\adminscripts\adsutil.vbs set w3svc/1/root/test/apppoolid myapppool
Comments
Post a Comment