Posted on Leave a comment

Windows 10: How to shutdown when the sleep key on your keyboard is pressed

I prefer to always shutdown my computer when I’m not using it and since my keyboard has no SHUTDOWN key, I want to use the SLEEP key instead. So here are the steps to do that.

  1. Hit the Windows + R keys on your keyboard and type regedit. Click OK and a window should pop asking you “Do you want to allow this app to make changes to your device?” Click Yes.
  2. With the Registry Editor running, open HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Power\PowerSettings . Click on every folder under it until you find the one that contains the FriendlyName: @%SystemRoot%\system32\powrprof.dll,-251,Power buttons settings.
  3. Click the arrow on the left of this show all the folders under it. Click on each folder until you find FriendlyName: @%SystemRoot%\system32\powrprof.dll,-255,sleep button action . Expand the folder and click DefaultPowerSchemeValues. There are 3 folders under this folder and each “Value data” should be changed from 1 to 3.
  4. Press the Windows key and type “edit power plan”. Click Open.
  5. Finally, click on Restore default settings for this plan and click Yes. That’s it. Press the SLEEP key on your keyboard and your PC should shutdown immediately. Don’t forget to save your work before you do that.

Have a nice day! 🙂

source: https://social.technet.microsoft.com/Forums/en-US/e517a8cc-96be-47ee-978e-ce89bb8bec40/sleep-button-action-gt-shut-down-how?forum=w7itprogeneral

Posted on Leave a comment

Fix the MBR in Windows 10

Sometimes when you’re installing another OS like Linux on a single disk drive with Windows 10 on it, the boot record got overwritten or corrupted which makes it unable to load Windows and you just want to restore to its original state like before.

For this fix you need the original Windows 10 DVD installation disk to repair the Master boot record.

1. Place the Windows 10 Boot Disk in your DVD drive and boot from it.

2. When the Welcome screen loads, click Repair your computer.

3. Then choose Troubleshoot, then choose Command Prompt.

4. Type the following commands pressing Enter after each line:

bootrec /FixMbr
bootrec /FixBoot
bootrec /ScanOs
bootrec /RebuildBcd

5. Wait for each command to complete.

6. Remove the DVD disk, type exit and press Enter.

7. Now reboot your computer.