In some cases, the shut down or a restart button of the computer is pressed mistakenly. In such cases, this operation can be easily aborted. Here are the steps:
Step1. Press the right button of the mouse on the clean area of the desktop and then choose “shortcut” under “New”
Step 2: Write “shutdown -a” under “type the location of the item” and click next.
Step3: Now give the shortcut name of your choice and click on finish.
Step 4: With this the abort operation icon is ready. Now whenever, you click on the shutdown or restart button, then immediately press this icon and the operation is aborted.
How to Abort The Shutdown Operation in Windows