Prevent Windows Update From Hijacking Your Shutdown Button
Prevent windows update from rebooting your system. Remember the time when you where typing up important information, and the dialog box popups telling you to restart your computer to finish installing the important updates, yes well I sure do remember the time. Well lucky we can stop/prevent this from happening again by simply editing the registry. Note that you will still get the prompt but it want force you to shut down any more.
Open up the regedit.exe editor and navigate to the following, if the keys doesn't exist simply create them.
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
Create new 32-bit DWORD value and name it NoAutoRebootWithLoggedOnUsers and give it a value of 1 thus preventing automatic reboot. Undo the following to set things back to default. You can also choose to download the .reg files here.