How to stop shutdown timer windows 10 keygen#
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control How long does your service need to exit gracefully? Will 60 seconds be enough?
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WaitToKillServiceTimeout Windows forcibly terminates any services still runningīy default, that “fixed period” is only 5 seconds - insufficient time for your busy service to wind down gracefully.įortunately we can extend that period by modifying this registry value: Windows informs each service that it should shut down Extend the “Shutdown Timeout” for all Windows ServicesĪs far as services are concerned, Windows follows this procedure when shutting down: In the server scenario, where interactive user experience is less of an issue, a safe shutdown should take precedence over a speedy one!įortunately there are a couple of ways to swing the balance of power to your Windows Service: 1. However, it not ideal for servers running important background processes. As you have seen, this can lead to undesirable results.Ĭlearly this bias towards a quick shutdown makes sense for a desktop computer because a person is likely waiting patiently at the keyboard and mouse. The goal is to complete the process in 20 seconds or less.Īpplications and services that don’t respond within that time frame are classified as hung and are promptly terminated. Hi Jeff, sorry to hear of the database corruption!įor obvious reasons, Windows tries to shut itself down as quickly as possible. How do I get Windows to wait until my service is done and not kill it while it’s still working? Sometimes when we reboot the server, Windows doesn’t wait for the service to finish, and we end up with database corruption, which is a huge pain. One of our file ingestion services can take a while to finish all pending database updates and exit cleanly.