mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-18 19:23:56 +00:00
Dump registry
This commit is contained in:
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@@ -48,5 +48,8 @@ jobs:
|
||||
path: |
|
||||
build/${{matrix.preset}}/artifacts/*
|
||||
|
||||
- name: Dump Registry
|
||||
run: cd build/${{matrix.preset}}/artifacts && ../../../src/grab-registry.bat
|
||||
|
||||
- name: CMake Test
|
||||
run: cd build/${{matrix.preset}} && ctest --verbose
|
||||
|
||||
17
src/grab-registry.bat
Normal file
17
src/grab-registry.bat
Normal file
@@ -0,0 +1,17 @@
|
||||
@echo off
|
||||
|
||||
NET SESSIONS > NUL 2>&1
|
||||
IF %ERRORLEVEL% NEQ 0 (
|
||||
ECHO Error: This script requires administrative privileges.
|
||||
EXIT /B 1
|
||||
)
|
||||
|
||||
SET REGDIR="registry"
|
||||
MKDIR %REGDIR%
|
||||
|
||||
REG SAVE HKLM\SYSTEM %REGDIR%\SYSTEM /Y
|
||||
REG SAVE HKLM\SECURITY %REGDIR%\SECURITY /Y
|
||||
REG SAVE HKLM\SOFTWARE %REGDIR%\SOFTWARE /Y
|
||||
REG SAVE HKLM\HARDWARE %REGDIR%\HARDWARE /Y
|
||||
REG SAVE HKLM\SAM %REGDIR%\SAM /Y
|
||||
COPY /B /Y C:\Users\Default\NTUSER.DAT "%REGDIR%\NTUSER.DAT"
|
||||
Reference in New Issue
Block a user