How do I modify the shutdown grace period timer on a Windows system?

I have a PC at work I take care of, and the management wants something changed on it. In normal operation, a particular application will cause the PC to shutdown Windows, causing a grace period dialog box to appear with a 30 second countdown. TPTB want this changed to 5 seconds.

I found a registry entry called ShutdownTime with data entered, but none of it appeared to have any relation to 30 or 30.0, even when I manipulated it with a hex editor (nothing was changed, BTW).

Anyone have insights and advice for me?

There are several different versions of windows so knowing your OS would be useful. Is this countdown box the actual windows OS closing box or is it part of the applicaiton that caused the closing?

It’s the system shutdown box that’s the problem. The platform is XP Pro V5.1, FWIW.

Below is a way to control the shutdown timing.

As a side note the amount of time it takes to shut down is not (so far as I know) just arbitrary, and there several housekeeping and cleanup procedures that go on. Regardless of what you set the shutdown timer to, the OS may have to complete these tasks before it closes and these may take more than 5 seconds.

Windows XP Shutdown Shortcut

If shutdown.exe is called directly by the application program, it more than likely has the parameters (30 seconds) hardcoded as part of the program. In this case, unless you have the ability to make changes to that application you are probably SOL.