We have a system which regularly requires the IIS app pools to be recycled, I haven’t yet gotten round to writing this in PowerShell or scripting with some form of orchestration software. For now it’s just a good old batch script. I’m going to remove most of the script and just leave the important lines –
appcmd.exe recycle apppool /apppool.name:"ASP.Net v4.0"
appcmd.exe recycle apppool /apppool.name:"ASP.Net v4.0 Classic"
appcmd.exe recycle apppool /apppool.name:"Classic .NET AppPool"
appcmd.exe recycle apppool /apppool.name:"DefaultAppPool"
Our service desk run this script on demand. My goal is to get this setup in Microsoft System Center Orchestrator with Service Manager so it can become a self service fix for the affected department. A little way off yet as time has not permitted me to return to this, like many things once you have a ‘fix’ no matter how thrown together it’s on to the next problem.
Having read this I thought it was rather informative.
I appreciate you spending some time and energy to put this content together.