Powershell script to manage IIS AppPool recycle

Posted on 12 October 2018

Below script to stop IIS application pool stop recycling after 1740 minutes which is default time set by IIS.

Import-Module WebAdministration
$pool = "IIS:\AppPools\webapp"
Set-ItemProperty $pool -Name Recycling.periodicRestart.time -Value 0.00:00:00

Comment

Leave Comment below.