Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Change AppPool of a site using scripts on IIS6

$
0
0

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 ??


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>