If your computer is used by other family members or the public who aren’t technology savvy, then preventing them from accessing the Registry might be a good idea.
Navigate to Start and type gpedit.msc in the search bar. Select gpedit from the results to open Local Group Policy Editor.
Go to User Configuration\Administrative Templates\System. In the right window, under Setting, double click on Prevent access to registry editing tools.
The Prevent access to registry editing tools dialog box opens. Select the Enabled radio button. Click OK to continue.
Close Local Group Policy Editor. If a user tries to access the Registry, they will now be greeted with the following error message: