Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1072
  • Last Modified:

Editing HKEY_USERS using a .REG file

I am trying to use a .REG file to change the NoFileAssociate setting in HKEY_USERS, but it keeps giving me a error. The .REG file runs without any errors when I use HKEY_LOCAL_MACHINE but, it does not accomplish what I need.

Below is my code for HKEY_USERS -

Windows Registry Editor Version 5.00
[HKEY_USERS\DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoFileAssociate"=dword:00000000

Here is the error -
Cannot import fix.reg. Error accessing the registry
0
MIKOAKE
Asked:
MIKOAKE
1 Solution
 
flubbsterCommented:
It may be that it looks like you are missing the period before Default...

Like so...

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
0
 
synxCommented:
This error usually means that the entries in the .reg file are not in the correct format.  If you're not sure about the format, you could pull up a registry entry and save it to file, then copy the format from that .reg file.
0
 
MIKOAKEAuthor Commented:
It funny how such a small detail could make such a big difference.

Thanks.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now