# Import IIS module Import-Module WebAdministration # Get the list of Application Pools $appPools = Get-ChildItem IIS:\AppPools # Display the App Pool names and their statuses in key-value pairs foreach ($appPool in $appPools) { $status = Get-WebAppPoolState -Name $appPool.name Write-Output "appPoolName=$($appPool.name), appPoolStatus=$($status.Value)" } You can expand with more details inf you like. You can run by either calling with powershell in your stanza or via cmd and call it with powershell that way.
... View more