Home Gitesh Portfolio Blog About Me Gallery Contact

Sitecore - PowerShell Script to Find When the Container App Pool was Restarted

If you're managing a Sitecore XM/XP website, it's important to know when the container app pool was last restarted. This information can help you troubleshoot issues and ensure that your website is running smoothly. In this blog post, we'll show you how to use a PowerShell script to quickly find out when the container app pool was last restarted.
 

Get-EventLog -LogName System -Source WAS -Newest 10 | Format-List

Import-Module WebAdministration
​Get-ItemProperty -Path IIS:\AppPools\DefaultAppPool -Name recycling.periodicRestart.schedule.collection

Keywords: Sitecore, Sitrecore Powershell script, App Pool Restarted, Sitecore event logs 

Posted: 25/02/2024 6:50:30 p.m. by Gitesh Shah | with 0 comments