/images/nasan-avatar.jpeg

Windows Sandbox Customization with DSC

Demo Windows Sandbox Customization with Powershell DSC

In this Demo I’m going to show you how you can use the Windows Sandbox and do some customization with Powershell DSC.

Enable Windows Sandbox

First you need to enable the Windows Sandbox. You can do that by enabling the windows feature using the GUI or enable it with Powershell:

Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -Online

Customization Files

You can create a XML Config file like the following example and save it anywhere as .wsb -> which will link automatically to Windows Sandbox :

useful chocolatey commands

Useful Chocolatey commands

Useful Chocolatey commands

search a package: choco search appname

Install a package choco install appname

list all installed packages choco list -localonly

list specific package choco list appname

upgrade specific package: choco upgrade appname

upgrade all packages choco upgrade all