humer2000
asked on
IIsApplicationPool (ADSI)
Hi
i am trying to recycle a pool with ADSI
so i created a file called restart.vbs and i put the following in the code
Dim WebServerObj
WebServerObj = GetObject("IIS://localhost /w3svc/App Pools/MySi te.com")
WebServerObj.recycle()
MySite.com is the name of the pool.
Well when i lauch the restart.vbs, i don't see seomthing happening, nor the pool recycling.
Any help on how to make it work ?
Thx
i am trying to recycle a pool with ADSI
so i created a file called restart.vbs and i put the following in the code
Dim WebServerObj
WebServerObj = GetObject("IIS://localhost
WebServerObj.recycle()
MySite.com is the name of the pool.
Well when i lauch the restart.vbs, i don't see seomthing happening, nor the pool recycling.
Any help on how to make it work ?
Thx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.