Skip to content

Commit

Permalink
fix: bluescreen error
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyueta committed Oct 8, 2023
1 parent 3f51b2e commit 7c580b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/playbook/Executables/FINALIZE.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ for /f %%a in ('PowerShell -NoP -C "(Get-PhysicalDisk -SerialNumber (Get-Disk -N

if "%diskDrive%" == "SSD" (
rem Remove lower filters for rdyboost driver
set "key=HKLM\SYSTEM\CurrentControlSet\Control\Class\{71a27cdd-812a-11d0-bec7-08002be2092f}"
for /f "skip=1 tokens=3*" %%a in ('reg query %key% /v "LowerFilters"') do (set "val=%%a")
set "reg_path=HKLM\SYSTEM\CurrentControlSet\Control\Class\{71a27cdd-812a-11d0-bec7-08002be2092f}"
for /f "skip=1 tokens=3*" %%a in ('reg query "!reg_path!" /v "LowerFilters"') do (set "val=%%a")
set "val=!val:rdyboost\0=!"
set "val=!val:\0rdyboost=!"
set "val=!val:rdyboost=!"
reg add "%key%" /v "LowerFilters" /t REG_MULTI_SZ /d "%val%" /f > nul
reg add "!reg_path!" /v "LowerFilters" /t REG_MULTI_SZ /d "!val!" /f > nul

rem Disable ReadyBoost
reg add "HKLM\SYSTEM\CurrentControlSet\Services\rdyboost" /v "Start" /t REG_DWORD /d "4" /f > nul
Expand Down

0 comments on commit 7c580b6

Please sign in to comment.