I accidentally deleted the restart and shutdown button codes.

Daktan 0 Reputation points
2024-03-20T11:02:21.2533333+00:00

I accidentally deleted the restart and shutdown codes.

Unfortunately, I downloaded a program from an English proficiency assessment company. (Yes, one of those well-known global companies). Later, this program caused a malfunction, and I lost access to buttons like Task Manager, shut down, and log off.

Then, following certain steps in Windows help, I managed to access the places where these codes are set as 1 and 0, and I fixed the Task Manager and log off buttons. However, I accidentally deleted the codes for shutting down the computer and logging off. (Don't do it out of frustration with the program :) )

As a result, I have a question and a suggestion for everyone else.

Firstly, never download exam company programs onto personal computers and avoid opting for remote exams. Go to the university's/company's exam centers.

Secondly, how can I restore these codes to their places? (I change it from regedit before)

Edit- Already this
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\Start
Set "HideShutDown" to 0
Set "HideRestart" to 0


Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,619 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Navanath Yenpure 155 Reputation points
    2024-03-21T04:48:48.44+00:00

    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:

    1. Open the Registry Editor by pressing Win + R, typing regedit, and hitting Enter.
    2. Navigate to the following location in the registry editor: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\Start
    3. Look for the keys named "HideShutDown" and "HideRestart."
    4. Set the value of "HideShutDown" to 0 to enable the shutdown button.
    5. 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:

    1. Right-click on the "Start" key in the left pane.
    2. Choose "New" -> "DWORD (32-bit) Value."
    3. Name the new DWORD value as "HideShutDown" (without quotes).
    4. Double-click on "HideShutDown" and set its value to 0.
    5. 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.

    0 comments No comments

  2. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,731 Reputation points Microsoft Vendor
    2024-03-22T08:13:58.6766667+00:00

    Hi Daktan,

    Thanks for your post. If you have confirmed the following registry, please try to repair the system with the following method.

    1. Click on 'Start'. 2. Enter 'Command prompt' in the Search box. 3. In the list of results, swipe down on or right-click Command prompt, and then tap or click 'Run as administrator'. 4. In the Administrator: Command Prompt window, type the following commands. Press the Enter key after each command: DISM /Online /Cleanup-Image /CheckHealth DISM /Online /Cleanup-Image /ScanHealth DISM /Online /Cleanup-Image /RestoreHealth To close the Administrator: Command Prompt window, type Exit, and then press Enter. Note: The tool might take 15-20 minutes to finish running, so please do not cancel it.
    0 comments No comments