Windows Server / Services, IIS & Secure Operations
Check service recovery policy when a server repeatedly restarts a failing process
Automatic restart can make a broken service appear intermittently healthy while it generates repeated failures. Preserve the underlying error and configured recovery actions.
Environment and inputs: Windows Server 2022 / 2025 baseline · Windows PowerShell with the specified role or RSAT modules; native utilities are identified in the text. Use delegated administration and elevation only where required.
Start with this check
Check the computer, command shell and account permissions. Replace example names, file paths, domains and interfaces with approved values. These commands help investigate the problem. Before making changes, check the rules and the effect on running applications.
sc.exe qfailure AppService
What the results mean
In a Windows terminal, the command reads recovery actions for the named service. It does not identify why the process fails or whether the application is safe to restart.
Fix the cause and check again
Compare crash times with recovery intervals and application evidence. Fix the root cause and review bounded recovery behavior with the service owner.
Before changing production
Do not configure an endless restart loop or a machine reboot action to hide a deterministic application fault.