Skip to content

Instantly share code, notes, and snippets.

@RangHo
Created May 15, 2023 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RangHo/3c35ab01cb7fc09afbd0f614b008ebca to your computer and use it in GitHub Desktop.
Save RangHo/3c35ab01cb7fc09afbd0f614b008ebca to your computer and use it in GitHub Desktop.
Force enable Windows Sandbox features on Windows 10/11 Home editions.
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Containers*.mum >sandbox.txt
for /f %%i in ('findstr /i . sandbox.txt 2^>nul') do dism /Online /NoRestart /Add-Package:"%SystemRoot%\servicing\Packages\%%i"
del sandbox.txt
dism /Online /Enable-Feature /FeatureName:Containers-DisposableClientVM /LimitAccess /All
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment