offlinereg.exe D:\PATH\System ControlSet001 run D:\commands.txt
D:\PATH\System is an existing hive (copied from a WinPE build)
Content of commands.txt
A\B\C\D\E\Test setvalue NewValue NewValueData 1
A\B\C\D\E\Test setvalue "New Value" "New Value Data" 1
A\B\C\D\E\Test setvalue ThreadingModel Both 1
A\B\C\D\E\Test setvalue " " %SystemRoot%\System32\actxprxy.dll 2
A\B\C\D\E\Test setvalue "Reg Binary Test" 80,00,00,00,00,00,00,00 3
A\B\C\D\E\Test setvalue BootDriverFlags2 28 4
setvalue NewValue ok
setvalue New Value ok
setvalue ThreadingModel ok
setvalue Reg Binary Test ok
setvalue BootDriverFlags2 ok
saved to D:\PATH\System ok
The new keys were not added to a relative path (relative to ControlSet001), but were instead added to the hive root.
Not a problem and the new run
command works great. Just worth mentioning to ensure that people add paths relative to the hive root at this stage. And personally I'm not sure that there is any benefit to adding the ability to write to relative paths.
Fantastic work. Now make sure you get some rest over the weekend.
- added bonus - escape characters do not seem to be required in the command list when the new run
command is used. E.g. -
A\B\C\D\E\Test setvalue " " "%systemroot%\Path with spaces\actxprxy.dll" 2
Added the following to the registry -
(default) REG_EXPAND_SZ %systemroot%\Path with spaces\actxprxy.dll