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