

Also, the script will map the Temp folder located in the root of the "C:\" from the host machine, and it'll launch a Command Prompt session. If you need to run a complex command, we recommend creating a script and then running it with a single command inside Sandbox.Īfter you complete the steps, using the above example, Windows Sandbox will start without a connection to the network, and it'll use software rendering, instead of a virtual GPU. Type the following to run a command during startup on Windows Sandbox: cmd.exeInside the Command block, make sure to replace cmd.exe for the command that you want to run.To run a command or script during login on Windows Sandbox, use these steps: How to run startup commands on Windows Sandbox While the above instructions outline the steps to map a single folder, you can create multiple MappedFolder blocks inside the MappedFolders block to mount as many folders from the host device as you need. Every command you run with Windows Sandbox will be executed under the "WDAGUtilityAccount" account, which means that shared folders will always appear in the Desktop. wsd file, Windows Sandbox will map the folder, which you can then easily access from the Desktop. Also, inside the ReadOnly block use the "true" value (recommended) to enforce accessing the folder as read-only mode, or use the "false" value to allow read-and-write access to the folder.Īfter you complete the steps, when you run the. Type the following to map a folder on Windows Sandbox: C:\temptrueIn the script, make sure to specify the path for the host folder that you want to appear inside Windows Sandbox within the HostFolder block.To share a folder from the host (physical) device to the Windows Sandbox desktop, use these steps: How to map a host folder on Windows Sandbox Once you complete the steps, Windows Sandbox will use software rendering for graphics in the virtual machine, but it'll result in slower performance.

Type the following to enable the vGPU on Windows Sandbox: Default Quick note: Although you can specify to disable the vGPU, Windows Sandbox will enable this feature by default whether or not you use a configuration file.Type the following to disable the vGPU adapter on Windows Sandbox: Disable.wsb configuration file that you created earlier, select the Open with option, and click the Choose another app option. To disable or enable graphics virtualization on Windows Sandbox after installing the May 2019 Update, use these steps: How to manage virtual graphics on Windows Sandbox wsb file to launch Windows Sandbox with the configuration changes that you specified. Type the following to enable networking on Windows Sandbox: Default Quick note: Although you can disable networking, Windows Sandbox will enable this feature by default whether or not you use a configuration file.Īfter completing these steps, you can double-click the.
