Adding Sandbox support to Windows installation image...

in #windows3 years ago

Sandbox is isolated executing environment designed for testing dangerous or otherwise unsafe software without risking the safety of main operating system. This is yet another feature that was exclusive to Windows 10 Professional, but can be enabled on Windows 10 Home also.

NOTES: You can skip creating the directories if they already exist


md C:\temp
md C:\install
Dism /Mount-Image /ImageFile:C:\$Windows.~WS\Sources\install.wim /Name:"Windows 10 Home" /MountDir:C:\install
dir /b %SystemRoot%\servicing\Packages\*Containers*.mum >C:\temp\sandbox.txt
for /f %%i in ('findstr /i . C:\temp\sandbox.txt 2^>nul') do Dism /Image:"C:\install" /NoRestart /Add-Package:"%SystemRoot%\servicing\Packages\%%i"
Dism /Image:"C:\install" /Enable-Feature /FeatureName:Containers-DisposableClientVM /All /LimitAccess
Dism /Unmount-Image /MountDir:C:\install /Commit