首页 » ASP代码, VBS脚本 » IIS上关于站点池操作app pool(2)

IIS上关于站点池操作app pool(2)

Set objAppPool = GetObject("IIS://localhost/W3SVC/AppPools/online")
objAppPool.Start()  '启动=Start,停止=Stop,回收=??
Set objAppPools = GetObject("IIS://localhost/W3SVC/AppPools")
for each objAppPool in objAppPools
    WScript.echo objAppPool.Name '显示IIS上所有池
next
Set objAppPool = GetObject("IIS://localhost/W3SVC/AppPools/online")
Applications = objAppPool.EnumAppsInPool()
for index = 0 to UBound(Applications)
    WScript.echo Applications(index) '枚举池中的站点root
next
Set objAppPools = GetObject("IIS://localhost/W3SVC/AppPools")
Set objAppPool = objAppPools.Create("IIsApplicationPool", strAppPool)
objAppPool.SetInfo'创建一个进程池

, , , ,

转发到新浪微博 转发到新浪微博

目前这篇文章有2条评论(Rss)

  1. oyun oyna | #1
    05/16/2012 at 13:10

    you happen to be genuinely number 1 admin your running a blog is wonderful i usually test your blog i’m sure you will likely be the very best

  2. social | #2
    05/16/2012 at 23:44

    7wDmgM I really enjoy the blog post. Awesome.

我要评论