Many times after a software installation, Windows prompt for a restart and you click the restart button accidentally before saving all your work. You can create a shortcut to abort the restart/shutdown process in such cases. To create a shortcut, right click on the desktop and select New-> Shortcut. In the create new shortcut dialog box, first enter the location of shortcut as shutdown.exe –a.

In the next step, give a name for the shortcut like Abort Shutdown.

Click Finish and your new shortcut to abort shutdown or restart will be available on desktop. This shortcut will work only for a short duration between the actual shutdown. So its better to create a keyboard shortcut for this.

Right click on the desktop shortcut and select properties. In the shortcut tab, select a suitable keyboard shortcut, which you can fire quickly.

Click Apply and you are done. Next time you accidentally click restart, then quickly fire this keyboard shortcut to abort shutdown process.