SoFunction
Updated on 2025-04-14

Change the registry to ensure smooth shutdown—an example of strange faults


The author is a computer room administrator. The computer in the computer room uses the Windows XP system to connect to the network. In actual management, I found that sometimes the computer cannot turn off the power automatically, but stays on the screen of "It is safe to turn off the computer now" and then stops moving. However, our chassis is all using Patriot Moonlight Treasure Box, which belongs to the ATX power supply. Theoretically, it should be automatically turned off. The fault was finally eliminated through practice. The specific process is as follows.

First of all, it is suspected that the software installed in the system cannot automatically exit, so these computers are reused without faulty computer system installation methods, but the problem still cannot be solved.

Secondly, when starting the two computers, one is good and the other is bad. When comparing the applications and processes started by the two machines through Windows Task Manager, I found that they were exactly the same and there was no difference. It seemed that I was at a loss.

Finally, by chance, I looked through a computer magazine without surprise. The magazine said that the registry can correct this problem. The operation method is:

Open the Registry Editor (Start → Run → Enter Regedit), find the "HKEY_LoCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" branch, find or create a new REG_SZ type registry key in the right pane, name is "PowerdownAfterShoutdown", double-click to set its value to 0 (0 is allowed to automatically turn off the power function, 1 is not allowed to automatically turn off the power function), exit the Registry Editor after completion, and restart the computer.

Note: This method is suitable for Windows NT/2000/XP/2003.