Trying to make a .REG file with all my Windows tweaks

fbrdphreak

Lifer
Apr 17, 2004
17,555
1
0
As stated above, I've compiled a number of registry tweaks and Windows settings that I normally change manually. Many I've pulled from third party sites, but no one had the reg setting that modifies the amount of L2 Cache that Windows sees. So I look up the Reg key from here and while looking at the other reg script lines that I copied into my reg file, I wrote the following code:

;Optimize Windows L2 Cache (2048KB)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"SecondLevelDataCache"=dword:0x00000800

Note: 0x00000800 is 2048 in decimal, i.e. 2MB L2 Cache for the Dothan in my T42.

But when I put that code in a file named CacheTweak.reg and try to execute it, Windows tells me that it is not a valid registry script. As an example, here is the reg code I looked at to write this:

;Disable Automatic Restart in the event of a BSOD
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]
"AutoReboot"=dword:00000000

Please explain to me where I am going wrong with my code. I've not been able to find any kind of guide for registry script syntax or creation or anything. Specifically pointing out what is wrong with my code would be awesome, but if anyone knows the general rules for syntax, I would greatly appreciate it. Thanks in advance.
 

KB

Diamond Member
Nov 8, 1999
5,406
389
126
I believe there are some hidden characters in the header of the script that you will need. What I would do is export a single key from the registry to a reg file. Then edit the reg file by adding your new text, but keep the header as it is.
 

fbrdphreak

Lifer
Apr 17, 2004
17,555
1
0
Night crawler is absolutely right, I did forget that line. I will try that alone and if that doesn't do it, I will try KB's idea. Thanks a lot guys!
Thanks Night Crawler, that did it!