WebAug 15, 2013 · Write-Output "Updating recycle times for $ApplicationPoolName" # Delete all existing recycle times Clear-ItemProperty IIS:\AppPools\$ApplicationPoolName -Name Recycling.periodicRestart.schedule foreach ($restartTime in $RestartTimes) { Write-Output "Adding recycle at $restartTime" WebIf you have set one or more specific times recycle values scheduled for an application pool, use the following PowerShell command to get the values: ( Get-ItemProperty ( 'IIS:\AppPools\example.org' ) -Name Recycling.periodicRestart.schedule.collection) select value Code language: PowerShell (powershell)
Periodic Restart Settings for Application Pool Recycling ...
WebDec 29, 2015 · # Load IIS module: Import-Module WebAdministration # Set a name of the site we want to recycle the pool for: $site = "Default Web Site" # Get pool name by the site name: $pool = (Get-Item "IIS:\Sites\$site" Select-Object applicationPool).applicationPool # Recycle the application pool: Restart-WebAppPool $pool WebSearch PowerShell packages: IISManager 2.1.0. Public/AppPools.ps1 hermes malaysia picotin
Remotely or locally recycle IIS application pool via PowerShell with …
WebSep 28, 2024 · No problem if you're a medieval ages lover... IIS for NT 3.51 was pretty cool too. But, again : I recommended powershell for the "script way", to be able to do more than a simple application pool recycle. If it's for doing it on many servers at the same time, a powershell loop seems to me more efficient than a batch script. Web$RecyclePools = (read-host "Select pools to recycle (separated by comma):") -split ',' foreach($value in $RecyclePools){ invoke-command -ComputerName $servers -ScriptBlock{restart-webapppool $pools[$value]} } Related Topics PowerShell Microsoft Information & communications technology Technology comments WebJul 24, 2024 · You can configure this in IIS. Go to IIS -> Application Pools -> Select the App Pool -> Click Recycling from right hand side Actions ->. Check Specific Time (s) Check box and set 10:00 AM -> Click Next -> Finish. . Best Regards, Vaibhav Antriwale. Proposed as answer by Dennis Guo Thursday, July 19, 2024 9:20 AM. maxage must be a number