Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Wed, 21 Dec 2005 15:09:24 GMT,    group: microsoft.public.inetsdk.programming.scripting.vbscript        back       


IIS6 configuration with vbs, set "Recyling working processes" property   
Hi,
I have a vbs script wich makes a new application pool in IIS6, named test:

Option Explicit

dim basepath         :   basepath = "IIS://localhost/w3svc/1/root"
dim AppPoolName      :   AppPoolName = "test"


if CreateNewAppPool(AppPoolName) = false then
   WScript.Echo "Error creating AppPool "
   WScript.Quit
end if


function CreateNewAppPool(AppPoolName)
   dim AppPools, newAppPool
   set AppPools = GetObject("IIS://localhost/w3svc/AppPools")
   set newAppPool = AppPools.Create("IIsApplicationPool", AppPoolName)
      newAppPool.LogonMethod =1
   newAppPool.AppPoolIdentityType=3
   newAppPool.SetInfo
   if err = 0 then
      CreateNewAppPool = True
   else
      CreateNewAppPool = false
   end if
end function

How is it possible to set the pool
"Recycle workin processes" to some value eg. 60 minutes with vbs script ?

Regards
Jarmo
date: Wed, 21 Dec 2005 15:09:24 GMT   author:   jarmopy

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us