How to restore registry to default in Windows 10?
I bet you can open the Registry Editor by opening a command prompt (as administrator) and running:
regedit
.exe
in the classes root are for Explorer to know how to work with .exe
files.
Command Prompt should therefore be unaffected.
Here is what I did:
Enable Administrator account, base on this article:
- Activate the Start menu on the system.
- Type lusrmgr.msc and select the result that is returned to you.
- Left-click on "Users" in the left sidebar. You get a list of all accounts of the local system on the right.
- Right-click on Administrator and select Properties from the context menu.
- Remove the checkmark from "Account is disabled" on the Administrator Properties window and click apply, then ok.
Open the Administrator account from Start -> Change user
- Open
Git Bash here
from some folder with right click, then opencmd
from BASH and typeregedit
. - Back values from
HKEY_CLASSES_ROOT -> exefile
andexefile -> shell -> open -> command
to default (which I changed early).
P.S: I found a good way to change the values of registry if you are already closed Registry editor, this is example for exefile:
- Double-click a text (.txt) file in your system. (This opens Notepad.)
- From the File menu, click New.
Copy the following contents and paste into Notepad.
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.exe] @="exefile"
Save the file with .REG extension.
- Double-click the file to run it.
- This fixes the .exe file type ProgID.