Stop Windows Update from Automatically Restarting Your PC
That’s not the only annoyance, but you can stop Windows Update from hijacking the sleep button if you need to:
As an avid user of the Sleep function on my laptop, I’ve been more than irritated with Windows 7 or Vista’s habit of changing the Sleep/Shutdown button into an “Install Updates and Shut Down” button whenever there are updates from Windows Update.
After the last time I accidentally clicked this stupid button when I just wanted to enter sleep mode, I decided to look for a solution:
Download Registry Hack
Unzip the file and double-click on the StopHijackingMySleepButton.reg file to activate the registry hack. You shouldn’t have to restart anything, as the changes will happen immediately. There’s also a registry file to uninstall the hack.
I believe there is a similar option for XP, but I’m guessing the key is located in a different place.
Download StopHijackingMySleepButton Registry Hack
Prevent Windows Update from Forcibly Rebooting Your Computer:
We’ve all been at our computer when the Windows Update dialog pops up and tells us to reboot our computer. I’ve become convinced that this dialog has been designed to detect when we are most busy and only prompt us at that moment.
The real problem comes into play when Windows gets tired of reminding us and says that the computer is going to reboot in 5 minutes, and the only way you can prevent the inevitable is to temporarily disable Windows Update.
There’s a couple of ways that we can disable this behavior, however. You’ll still get the prompt, but it won’t force you to shut down.
I don’t believe this trick will work for XP Home or Vista Home users, according to the documentation that I’ve read. You’ll have to resort to the temporary disabling measuresinstead.
Downloadable Registry Hack
Just download and extract the registry hack files and double-click on WUNoAutoReboot.reg to disable automatic reboots. The other script will remove the hack.
Download WUNoAutoReboot Registry Hack
How to Stop Windows from Shutting Down or Rebooting:
If you’ve ever accidentally triggered a system shutdown and then suddenly changed your mind, here’s the simple trick to tell Windows to abort the shutdown and let you get back to goofing off.
So there you are, minding your own business and wasting time on Facebook, when Windows pops up a message telling you that you need to reboot right now… and you accidentally choose Restart now.
To prevent Windows from shutting down on you, just type in shutdown /a into the Start menu search box, and then use the Ctrl+Shift+Enter shortcut key combination to run the command as administrator—of course, if you’ve already disabled UAC you can just hit the Enter key.