It seems like you've already tried accessing the registry editor (regedit
) to make changes but accidentally deleted the codes for shutting down and logging off. Here's how you can restore them:
- Open the Registry Editor by pressing
Win + R
, typingregedit
, and hitting Enter. - Navigate to the following location in the registry editor: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\Start
- Look for the keys named "HideShutDown" and "HideRestart."
- Set the value of "HideShutDown" to 0 to enable the shutdown button.
- Set the value of "HideRestart" to 0 to enable the restart button.
If these keys are missing or you've accidentally deleted them, you might need to recreate them:
- Right-click on the "Start" key in the left pane.
- Choose "New" -> "DWORD (32-bit) Value."
- Name the new DWORD value as "HideShutDown" (without quotes).
- Double-click on "HideShutDown" and set its value to 0.
- Repeat steps 2-4 for creating the "HideRestart" DWORD value and setting its value to 0.
Once you've made these changes, you should be able to see the shutdown and restart buttons again. Always be careful when editing the registry as incorrect changes can cause system instability.