The context menu for Excel offers shortcuts to insert cell, delete cell, paste special, and other frequently used actions.
To add a shutdown option to the context menu in Windows 7 and Windows 8, follow these steps:
- Open the Start screen and type “cmd” into the search bar.
- When the command prompt is displayed, type “shutdown” and hit enter.
- The shutdown option will appear in the “Shutdown Options” section of the context menu.
Steps to Add Shutdown and Restart Options to Context Menu in Windows 11
Add shutdown and restart options to context menu with registry script
To start your taskbar, click on the Start button on your desktop. ..
Notepad is a text editor that you can use to write andedit text.
Right-click the Notepad app in the search results and select Execute as administrator.
Registry Script Code
- Open the Registry Editor and navigate to the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
- Type the following registry key into the editor and press Ctrl+C to copy it:
- Close the Registry Editor and restart your computer.
To make it easier to paste the script into notepad, you can use the Ctrl+V hotkey. ..
Open the “Text Editor” window. Select “New Text File.” Enter a name for your new text file. Click on the “Create” button.
Save as to open the Save As dialog.
Save as All Files
The Shutdown Options.reg file contains instructions on how to shutdown your computer.
To save your desktop location, select the desktop location and click the button. ..
If you’re using Windows 7 or 8, open the Start menu and type “cmd” and hit enter. If you’re using Windows 10, type “netstat -an” and hit enter. If you see the following message, your computer is in shutdown mode: Windows has detected that your computer is in shutdown mode and will not be able to continue operating. Please press any key to restart your computer.
Confirmation prompt: Yea
If you want to make changes to the registry, click OK in the Registry Editor dialog box. ..
Add shutdown and restart options with context menu
We click on the start button from the taskbar.
In Notepad, you can write your article’s main points.
When exiting, right-click and select Execute as administrator or in the menus that appear on the right under the application itself, click on the place where you placed the exact same thing. This is already to your liking.
To copy a script code log, you need to select its text with the cursor and press Ctrl + C. ..
We click on the menu archive, and then select Save As. This opens the common file dialog, where we can save our file to a specific location. ..
Save As: MyFile.txt
Save as All Files to your computer.
The shutdown options file allows you to shutdown your computer in a variety of ways. ..
We select the location where we want it to be saved on the desktop and click on the Save button. ..
We double click on the file Shutdown Options.reg that we just saved to the desktop and we are taken to a new window where we can choose how to shutdown our computer.
Confirm your subscription by clicking “Yea” in the confirmation message that appears to the side. ..
To accept a file in the Registry Editor dialog box, tap or click on the file. ..
Shut down and restart your desktop or laptop in the context menu.
We can access the classic context menu by pressing the hotkey Shift + F10 (or right-clicking on the desktop and selecting “show more options”). ..
If you are having trouble turning your computer off or restarting it, try one of these options: -Turn off the computer from the Power button -Restart the computer from the Windows start menu ..
The new context menu options can be removed by deleting keys added with the registry script. ..
Now we start the Registry Editor, putting in the area where you can write in the Start menu and when it exits click on it.
We open the shell registry key at this location: HKEY_CLASSES_ROOTDesktopBackgroundShell\shell We open the shell registry key at this location: HKEY_CLASSES_ROOTDesktopBackgroundShell\shell\open We open the shell registry key at this location: HKEY_CLASSES_ROOTDesktopBackgroundShell\shell\open\command ..
So we right-click the Restart computer and Shut down computer keys inside the shell to select, to remove, and then click Yup. ..
Final Words
To add shutdown and restart options to the context menu in Windows 11, open the Start menu and type “shutdown /s /r”. This will add shutdown and restart options to the context menu.