You provide the name of the AppPool.
var objAppPool = GetObject( "IIS://localhost/w3svc/AppPools/" +
appPoolName );
objAppPool.Recycle();
--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Greg Enslow" <genslow RemoveThis @qwest.net> wrote in message
news:OrEFqxlbDHA.1872@TK2MSFTNGP12.phx.gbl...
Hello,
I've found the script iisweb.vbs that allows me to stop and start an IIS
application but I need one that can recycle an application pool. Anyone have
one?
Thanks,
Greg
>> Stay informed about: Script to recycle IIS 6 application pool