-
-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
...ybook/Executables/AtlasDesktop/3. General Configuration/Superfetch/Disable SuperFetch.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@echo off | ||
set "___args="%~f0" %*" | ||
fltmc > nul 2>&1 || ( | ||
echo Administrator privileges are required. | ||
powershell -c "Start-Process -Verb RunAs -FilePath 'cmd' -ArgumentList """/c $env:___args"""" 2> nul || ( | ||
echo You must run this script as admin. | ||
if "%*"=="" pause | ||
exit /b 1 | ||
) | ||
exit /b | ||
) | ||
|
||
:main | ||
setlocal EnableDelayedExpansion | ||
|
||
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 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 | ||
|
||
rem Disable ReadyBoost | ||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\rdyboost" /v "Start" /t REG_DWORD /d "4" /f > nul | ||
|
||
rem Remove ReadyBoost tab | ||
reg delete "HKCR\Drive\shellex\PropertySheetHandlers\{55B3A0BD-4D28-42fe-8CFB-FA3EDFF969B8}" /f > nul 2>&1 | ||
|
||
rem Disable SysMain (Prefetch, Memory Management features) | ||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\SysMain" /v "Start" /t REG_DWORD /d "4" /f > nul | ||
|
||
echo Finished, please reboot your device for changes to apply. | ||
pause | ||
exit /b |
37 changes: 37 additions & 0 deletions
37
...cutables/AtlasDesktop/3. General Configuration/Superfetch/Enable SuperFetch (default).cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@echo off | ||
set "___args="%~f0" %*" | ||
fltmc > nul 2>&1 || ( | ||
echo Administrator privileges are required. | ||
powershell -c "Start-Process -Verb RunAs -FilePath 'cmd' -ArgumentList """/c $env:___args"""" 2> nul || ( | ||
echo You must run this script as admin. | ||
if "%*"=="" pause | ||
exit /b 1 | ||
) | ||
exit /b | ||
) | ||
|
||
:main | ||
setlocal EnableDelayedExpansion | ||
|
||
rem Add 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) | ||
|
||
echo "!val!" > nul | findstr /c:"rdyboost" | ||
if !errorlevel! NEQ 0 ( | ||
set "val=!val!\0rdyboost" | ||
reg add "!key!" /v "LowerFilters" /t REG_MULTI_SZ /d "!val!" /f | ||
) | ||
|
||
rem Enable ReadyBoost | ||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\rdyboost" /v "Start" /t REG_DWORD /d "0" /f > nul | ||
|
||
rem Add ReadyBoost tab | ||
reg add "HKCR\Drive\shellex\PropertySheetHandlers\{55B3A0BD-4D28-42fe-8CFB-FA3EDFF969B8}" /f > nul | ||
|
||
rem Enable SysMain (Prefetch, Memory Management features) | ||
reg add "HKLM\SYSTEM\CurrentControlSet\Services\SysMain" /v "Start" /t REG_DWORD /d "2" /f > nul | ||
|
||
echo Finished, please reboot your device for changes to apply. | ||
pause | ||
exit /b |