Skip to content

Commit

Permalink
feat: disable archive apps option
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyueta committed Oct 20, 2023
1 parent 02e4aec commit 9ed3a0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/playbook/Executables/WIN11.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ for /f "usebackq tokens=2 delims=\" %%a in (`reg query HKU ^| findstr /r /x /c:"
reg query "HKU\%%a" | findstr /c:"Volatile Environment" /c:"AME_UserHive_" > nul && (
echo Applying %regVariable% changes to "%%a"...
call :%regVariable% "%%a"

rem Disable archive apps
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\InstallService\Stubification\%~1" /v "EnableAppOffloading" /t REG_DWORD /d "0" /f > nul
)
)
if defined win10 exit /b
Expand Down

0 comments on commit 9ed3a0e

Please sign in to comment.