Link to home
Start Free TrialLog in
Avatar of humer2000
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/AppPools/MySite.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
ASKER CERTIFIED SOLUTION
Avatar of Dave_Dietz
Dave_Dietz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial