But if the problem is a recurring one, its most likely to be one of the following reasons:
1) One of your processes or services is not shutting down.
2) You have a faulty or incompatible device driver installed.
3) You have a faulty or incompatible program running.
Here are a few suggestions which you may consider:
1) Undo any recent changes which you may have made to your system. You may have to uninstall a recently installed program or an upgrade or an update or a hardware with device drivers.
2) Try a Last Known Good Configuration or a System Restore.
3) Use the Task Manager to manually try and identify the probable cause or causes for this. Manually stop and quit the suspect program, and then shut down to see if the issue is being resolved. You may have to repeat the procedure with several running processes.
4) Enter Safe Mode. From the Menu, move the cursor down to: Enable Boot Logging and hit enter.
This could be caused by a program or some corrupted application, or it could also be a virus. Here are three steps that may help you with your problem:
Do a right-click on My Computer, click on Properties, and click on Advanced tab.
Locate Startup & Recovery, and click on Settings.
Locate System Failure and you should uncheck a box just in front of the Automatically Restart.
In the Start menu, you need to click the Run button.
Go to the Open box and enter GPEDIT.MSC and click on OK.
Find Computer Configuration, then go to Window Settings, next is Local Policies, and then Security Options.
At the right corner click on Pane, locate Shutdown and clear the page file of the virtual memory.
If Windows XP does not shutdown automatically then the NT/APM Legacy Power Node may have been disabled.
Go to My Computer and right-click on the icon. Click on Properties, then Hardware, next is Device Manager, and then View.
Place a check mark in the box that says Show Hidden Devices.
Then a red X will appear on the NT/APM Legacy Node.
Enable that one and try to observe if the shutdown issue will be solved.
On the other side of ACPI/APM coin, you need to put a check mark and in the Control Panel, open-up the Power Option applet. If you have an APM tab, check on the Enable Advanced Power Management Support.
First of all, how are you today ? Hope you will be fine. Anyhow, now as you mention your problem; it looks like some registry error in your computer and it is because of a VIRUS which is effecting your PC. So, I first recommend you to run a full scan on your computer.
I will also tell you some other tricks to shut down your computer properly.
First try CTRL+ALT+DEL. In the file menu, you will also see the shutdown menu, go there and shutdown your PC. If it does not work, then follow these steps:
Go to your notepad editor and type this line there "C:windowssystem32shutdown -s -f -t 00."
Now save it on your desktop by keeping its name as "shutdown.bat" and click on save.
After you are done, a new .bat file will be on your desktop. Now when ever you want to shutdown just double click on file icon and you will be able to shut down the system.
If this also doesn’t work, then go to your registry edit and see what the problem is. You can also install a new OS on your PC.
That shouldn’t happen when you hit the “shut down” button or icon in the start menu because that button is designed to turn off the computer. If you are using Windows 7, check the configuration of the power button in the start menu to verify if it is really set to shut down the computer. To do this, right-click the “Start” menu and select “Properties”.
In the “Taskbar and Start Menu Properties” dialog, in the “Start Menu” tab, check that the “Power button action” is set to “Shut down”.
If the option is set to a different setting, click on the down arrow and select “Shut down”. Click “OK” then see if it works. If this doesn’t work, try using the System File Checker utility. Press the Windows key + R to bring up the “Run” dialog then type without quotes “cmd” then hit Enter. In the command prompt window, type without quotes “sfc /scannow” then hit Enter.
Insert your Windows setup CD or DVD on your optical drive when you are prompted then continue. Wait until the process is complete. When it is finished, close the command prompt then restart the computer. See if this works. If this doesn’t work, update your antivirus then perform a full system scan. You can also download Sophos Virus Removal Tool.
It is a virus removal tool that works alongside any antivirus program you may have. Once installed, start Sophos then wait for the virus signature database to get updated. When updating is complete, click to start scanning your computer. When a virus is found at the end of the scan, remove it then repeat the scan over and over until it no longer detects a virus.