Added switch for whether to enable output of generated XML files. |
||
|---|---|---|
| Installer Scripts | ||
| Sandbox Configurations | ||
| Startup Scripts | ||
| Theme Scripts | ||
| LICENSE | ||
| README.md | ||
README.md
Windows-Sandbox-Tools
Various useful scripts for use within Windows Sandbox
Using SandboxStartup.ps1
The script is written assuming it will be run from within the sandbox, so to automatically run it you'll need to put it into a mapped shared folder.
-
Create some new folder location (not in the sandbox) which you'll map into the sandbox. It doesn't matter what it's called or where it goes, but maybe something like
C:\Users\WhateverUsername\MySharedSandboxFolder -
In this repo I have the
MyDefaultSandbox.wsbconfiguration file which is already set up to map the folder to the location the script expects. So in there you just need to update the<HostFolder>setting to use the path you selected in the previous step.For Example:
<HostFolder>C:\Users\WhateverUsername\MySharedSandboxFolder</HostFolder> -
Update any other options to your liking in the
.wsbfile, such as amount of RAM. -
Launch Sandbox using the configuration by double clicking
MyDefaultSandbox.wsb. It will map the folder to the Desktop as a folder calledHostShared, and run the script automatically. You can also add other scripts and things to the shared folder you may want to run manually.