1
I am trying to add keys to the Windows Registry without replacements. I have tried this method to import the registry:
Regedit.exe /s "C:\reg\file.reg"
But this overwrites the currently existing keys.
I have also tried ‘Reg Add’ command; this also overwrites the existing value.
How to import a .reg file contents without overwriting the existing keys and values using command?
Also how to append the data to registry values? For example I have
Value=dword:00000001
Now I want to add 00000002
to the same value i.e.
Value=dword:00000001, 00000002
How to achieve this using Windows command?
Check if the key exists first? – DavidPostill – 2016-03-16T13:43:47.953
1Workaround: Use "reg.exe add" without the /f parameter. When you're asked to overwrite or not,click No. But this is not an option if you're applying settings for multiple computers in a domain.
2nd question: Pls provide more information. Only the data for MULTI_SZ types can be appended.. not for REG_DWORD – w32sh – 2016-03-16T14:10:02.780
If you want to append data, why don't you not append the data in the .reg file, that way you overwrite the data with what you actually want. So in other words export the current information then change it. – Ramhound – 2016-03-16T15:08:07.413
Actually I will be not knowing what data is there initially. Yes I can export and change but if I want to change some 1000 values or If I want to change in 100 computers then exporting and editing reg file is difficult to manage. – IT researcher – 2016-03-17T04:32:13.607