To create better isolation, and to prevent myself to get shut out of my own PC, I created this setup to be able to log on to my company VPN via Windows Sandbox.
- Windows 10 Professional edition. Home edition does not have it. If you have MSDN and you're sitting at home, then check your MSDN account and see if you're covered for an upgrade.
- Virtualization must be enabled in UEFI/BIOS.
For the quick setup, which includes convention based configs, you can quickly get up and running by following the following steps, but bear in mind that paths will be important!
- Clone the repo to "C:\virtualization" by using
git clone https://github.com/JohnyWS/cs-go-config.git sandbox
Thesandbox
part in the end is important. That makes sure the full local path is correct. - Enable Windows Sandbox optional feature by running this oneliner in an PowerShell admin prompt:
if((Get-WindowsOptionalFeature -Online -FeatureName 'Containers-DisposableClientVM').State -ne 'Enabled'){Write-Host 'Enabling feature ...';Enable-WindowsOptionalFeature -Online -FeatureName 'Containers-DisposableClientVM'}Write-Host 'All set!'
TODO: Document feature and supply other ways of doing the same thing. - Add your rdp files to the ressources folder. Read the suggestions docs for more info.
- Add your company vpn installer exe to the software template folder but named
company-vpn.exe
- Run template/company-sandbox-runner.wsb and you're good to go!
To better suit your custom usecase, a templating system has been introduced, that requires you to make local changes, followed by running /scripts/Initialize-Sandbox.ps1
to get started:
- Clone this repo (any path and folder name will do)
- Add your rdp files to the ressources folder. Read the suggestions docs for more info.
- Add all the installer exe files you need to the software template folder.
- Run the init script.
If you haven't installed Windows Sandbox, then run the script in an admin promt and with the-AutoInstallWindowsSandbox
switch. - Run the wsb file from the output folder and you're good to go!
If the startup script does not do exactly what you need, you can create your own by copying the existing and remove the ".template" part. This startup script will now be used instead, but no replacements will be done, so if you want to have an even better start, you might be better of using the file generated to the output folder as your starting point, because all the relative paths are setup correctly then.
The same can be done with the wsb file, but then you've pretty much done it all on your own, and there's not much help from this repo left, as it is right now - do you find yourself needing that, and have other things you'd like to automate, raise a ticket, and we'll have a look at how that can be accomplished.
- No multi-screen setup.
- More docs to help people better getting started with prerequesites
- You tell me! :)