IIS Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=3362
Answer
Troubleshoot IIS with the HTTP status and substatus code, IIS logs in C:\inetpub\logs, Failed Request Tracing, application pool state and identity permissions, bindings, certificates and the Application event log.
Remember
- The status and substatus code pinpoint most IIS problems.
- Failed Request Tracing records one request in detail.
- Application pool crashes show in the System and Application logs.
First checks
Get-Website— sites, state, bindingsGet-IISAppPool— application pools and stateGet-WebBinding— bindingsGet-ChildItem IIS:\SslBindings— certificate bindingsGet-Content C:\inetpub\logs\LogFiles\W3SVC<id>\*.log -Tail 20— request log
Commands
Get-WebAppPoolState -Name <pool>- Operational command for Read IIS application-pool state. Focus fields: application pool name and runtime state.
Get-Website- Read-only observation for website state, physical path and binding definitions.
Get-WebAppPoolState -Name <app-pool>- Read-only observation for application-pool runtime state.
Verify in this order
request → HTTP.sys → binding → pool → app → response
Where it usually breaks
First mismatch in target identity/version → persistent configuration/source of truth → provider/service/control plane → runtime/effective state → user/workload-visible result → event/log evidence; preserve identity/native error/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3362