|
Answer» Hello everyone,
Been a while since I last visited so I hope all are well.
WOULD like to know if it is possible for a batch script to recycle an application pool in IIS.
I have a application that monitors a large number of websites and on occassion some of these websites get themselves tied up. This means that generally I need to recycle their application pool (note - each website has their own independant application pool).
Within the application MONITOR I can stipulate to execute a script/executable dependant on certain conditions. And I began wondering if a batch script was plauseable.
Your thought on the MATTER appreciated.
Cheers, CameronExactly what needs to be done to recycle an application pool? As IIS is INTERNET BASED, my best guess is batch would not be suitable. But hey! you never know.
Most any of the Windows script languages might be useful.
Let us know.
Hi Sidewinder,
Coincidence is a funny thing. Found the following while trawling the net moments ago ...
cscript.exe c:\windows\system32\iisapp.vbs [AppPoolName] /r
Now I just need to apply to a remote host.
Cheers, Cameron
|