How to set an application pool restart time in PowerShell

Home > Blogs > PowerShell > How to set an application pool restart time in PowerShell

How to set an application pool restart time in PowerShell

Like This Blog 0Jason Helmick
Added by April 5, 2013

Want to change the restart time of an application pool? You can do it in the graphical IIS Manager, but if you’re trying to set the time for multiple pools, or on remote servers, why not use PowerShell.

To get an application pools current restart time:

PS> Get-ItemProperty -Path IIS:\AppPools\DefaultAppPool -Name recycling.periodicRestart.time

To change the restart time:

PS>Set-ItemProperty -Path IIS:\AppPools\DefaultAppPool -Name recycling.periodicRestart.time -Value 3.00:00:00

Use Powershell remoting and you can change the application pool restart time on remote servers:

PS>Invoke-Command –ComputerName web1,web2,web3 { Set-ItemProperty -Path IIS:\AppPools\DefaultAppPool -Name recycling.periodicRestart.time -Value 3.00:00:00}

Knowledge is PowerShell,

Jason Helmick
Systems Instructor
Interface Technical Training

You may also like:  Changing the Network Location in Windows 8 and 8.1

Videos You May Like

Agile Methodology in Project Management

0 21 0

In this video, you will gain an understanding of Agile and Scrum Master Certification terminologies and concepts to help you make better decisions in your Project Management capabilities. Whether you’re a developer looking to obtain an Agile or Scrum Master Certification, or you’re a Project Manager/Product Owner who is attempting to get your product or … Continue reading Agile Methodology in Project Management

Detailed Forensic Investigation of Malware Infections – April 21, 2015

1 79 1

In this IT Security training video, Security expert Mike Danseglio (CISSP / CEH) will perform several malware investigations including rootkits, botnets, viruses, and browser toolbars.

PMP: Change, the Purpose for Projects – November 4, 2014

0 6 0

In this video, PMP instructor Steve Fullmer present why change is challenging, rewarding, and poorly understood. You need to understand why and how to lead change.

Write a Comment

Share your thoughts...

Please fill out the comment form below to post a reply.