I have one 2k3 sp2 with IIS6 where I want to create an AppPool and site using scripts only.
I have create one apppool using adsutil.vbs
CSCRIPT %SYSTEMDRIVE%\Inetpub\AdminScripts\ADSUTIL.VBS CREATE w3svc/AppPools/MyAppPool IIsApplicationPool
When I create new site using iisweb.vbs -
cscript.exe iisweb.vbs /create "<path>" "<SiteName>" /b 100
Connecting to server ...Done.
Server = <ServerName>
Site Name = <SiteName>
Metabase Path = W3SVC/794407724
IP = ALL UNASSIGNED
Host = NOT SPECIFIED
Port = 100
Root = <path>
App Pool = DefaultAppPool (system default)
Status = STARTED
It uses system default App pool (DefaultAppPool),
How can I provide app pool which I have created instead of DefaultAppPool ??