load DRIVERS hive

This commit is contained in:
slore 2018-11-15 21:03:07 +08:00
parent 6ff6476fb1
commit 217bc4ba5f
2 changed files with 10 additions and 1 deletions

View File

@ -73,11 +73,19 @@ if ERRORLEVEL 1 set GetLastError=1
:DEAL_SYSTEM
if /i "x%2"=="xUNLOAD" (
reg query HKLM\%1_SYSTEM /ve 2>nul 1>&2
if ERRORLEVEL 1 goto :DEAL_NTUSER
if ERRORLEVEL 1 goto :DEAL_DRIVERS
)
(REG %2 HKLM\%1_SYSTEM %COMMENT_STR% %FILEPATH%\SYSTEM)
if ERRORLEVEL 1 set GetLastError=1
:DEAL_DRIVERS
if /i "x%2"=="xUNLOAD" (
reg query HKLM\%1_DRIVERS /ve 2>nul 1>&2
if ERRORLEVEL 1 goto :DEAL_NTUSER
)
(REG %2 HKLM\%1_DRIVERS %COMMENT_STR% %FILEPATH%\DRIVERS)
if ERRORLEVEL 1 set GetLastError=1
:DEAL_NTUSER
if /i "x%2"=="xUNLOAD" (
reg query HKLM\%1_NTUSER.DAT /ve 2>nul 1>&2

View File

@ -1,4 +1,5 @@
\Windows\System32\config\DEFAULT
\Windows\System32\config\DRIVERS
\Windows\System32\config\SYSTEM
\Windows\System32\config\SOFTWARE
\Users\Default\NTUSER.DAT