iis logeventonrecyle code example
Example 1: how to check iis logs for application pool recycle time
(ps -id (Get-IISAppPool -Name <name>).WorkerProcesses.ProcessId).StartTime
Example 2: how to check iis logs for application pool recycle time
$pool = Get-IISAppPool -Name <name>
$pool.recycle()
Import-Module -Force IISAdministration
(ps -id (Get-IISAppPool -Name <name>).WorkerProcesses.ProcessId).StartTime