Adding Sandbox support to Windows installation image...

in windows •  3 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

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!