Nordek, не уточнил
Код:
SET DISM="D:\Windows Kits\8.1\Assessment and Deployment Kit\Deployment Tools\amd64\DISM\dism.exe"
Set RP=%~dp0
Set RP=%RP:~0,-1%
mkdir "%RP%\mount"
SET MNT=%RP%\mount
SET BIMG=%RP%\boot7.wim
SET BIMG64=%RP%\boot764.wim
SET REG=%RP%fira.reg
SET DRV86=%RP%\fira\x86\firadisk.inf
SET DRV64=%RP%\fira\x64\firadisk.inf
%DISM% /Mount-Wim /WimFile:"%BIMG%" /index:2 /MountDir:"%MNT%"
%DISM% /image:"%MNT%" /Add-Driver /Driver:"%DRV86%" /ForceUnsigned
reg load HKLM\target %MNT%\Windows\system32\config\SYSTEM
reg import "%REG%"
reg unload HKLM\target
%DISM% /Unmount-Wim /MountDir:"%MNT%" /Commit
%DISM% /Mount-Wim /WimFile:"%BIMG64%" /index:2 /MountDir:"%MNT%"
%DISM% /image:"%MNT%" /Add-Driver /Driver:"%DRV64%" /ForceUnsigned
reg load HKLM\target %MNT%\Windows\system32\config\SYSTEM
reg import "%REG%"
reg unload HKLM\target
%DISM% /Unmount-Wim /MountDir:"%MNT%" /Commit
Ж.Д.А.Л.К.Е.Р., пробовал через regedit.exe не работает, но еще утилиткой от Руссиновича не пробовал.
Получается нет доступа только к "\Windows\system32\config\SYSTEM" к другому пути работает.