What is the correct formatting for registry file?

Commander_HK47

New Member
Hello, I am having difficulty identifying the correct format that NTLite is expecting for keys/values in a .reg file when trying to import them.
I can see the key in the preview window, butt the value does seem to be present. Additionally i have confirmed with a VM install that the keys are not being added with this method.

as an example:
Code:
Windows Registry Editor Version 5.00

;Set Windows Feedback Frequency to "Never"
[HKEY_CURRENT_USER\Software\Microsoft\Siuf\Rules]
"NumberOfSIUFInPeriod"=dword:00000000


The key appears in the preview pane, but the value is missing.

I can load the registry hive (default-user) and make manual edits, then close out the hive and that works without issue when testing an ISO in a VM.
I would rather like to learn how to correctly format/import .reg files because i would also like to keep the edits centralized in a file for lookup later on.

Thanks,
 
Last edited:
Ah ok I think i figured it out. I think it should be like this:

Code:
Windows Registry Editor Version 5.00

[HKEY_USERS\.DEFAULT\Software\Microsoft\Siuf\Rules]
"NumberOfSIUFInPeriod"=dword:00000000
 
Hmm ok. i need to read up on that then. Thanks for that insight.

If you know, could you please provide a correctly formatted example of how NTLite expects a registry string for default user to be written?

When i add a key like this; i get two entries: one for default users, and another for System. The values don't show in NTLite, and the keys don't seem to function correctly within Windows (at lest when adding via added .reg file method vs loading the default hive and editing it manually).

1659
 
...
Code:
Windows Registry Editor Version 5.00

;Set Windows Feedback Frequency to "Never"
[HKEY_CURRENT_USER\Software\Microsoft\Siuf\Rules]
"NumberOfSIUFInPeriod"=dword:00000000

The key appears in the preview pane, but the value is missing. ...
In Registry files, lines starting with a semicolon ( ; ) are comments. It is possible that NTLite tripped over this line because of the semicolon or the quote marks around Never.

That being said,
Add your reg files starting with "[HKEY_CURRENT_USER\" and let NTLite do the magic, it works.
The magic being referred to here is that NTLite will correctly convert [HKEY_CURRENT_USER\ and apply it to the default profile so that all new user accounts receive these settings. See the Registry sub heading in the Integration section in the NTLite documentation.
 
In Registry files, lines starting with a semicolon ( ; ) are comments. It is possible that NTLite tripped over this line because of the semicolon or the quote marks around Never.
When a semicolon is the first character, that is the only character read, not the full line and this line is skipped.
 
Back
Top