{"id":14063802,"url":"https://github.com/flexxxxer/WindowsSandbox-ConfigsAndScripts","last_synced_at":"2025-07-29T16:31:59.453Z","repository":{"id":135358368,"uuid":"587098317","full_name":"flexxxxer/WindowsSandbox-ConfigsAndScripts","owner":"flexxxxer","description":"Ready-made Windows Sandbox launch profiles and scripts that automate the routine","archived":false,"fork":false,"pushed_at":"2023-02-01T23:58:09.000Z","size":38,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-13T07:05:31.219Z","etag":null,"topics":["automation","powershell","profiles","scripts","windows-sandbox"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flexxxxer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-01-10T00:24:51.000Z","updated_at":"2024-08-08T19:35:14.000Z","dependencies_parsed_at":"2023-04-14T13:00:25.904Z","dependency_job_id":null,"html_url":"https://github.com/flexxxxer/WindowsSandbox-ConfigsAndScripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexxxxer%2FWindowsSandbox-ConfigsAndScripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexxxxer%2FWindowsSandbox-ConfigsAndScripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexxxxer%2FWindowsSandbox-ConfigsAndScripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexxxxer%2FWindowsSandbox-ConfigsAndScripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flexxxxer","download_url":"https://codeload.github.com/flexxxxer/WindowsSandbox-ConfigsAndScripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228028621,"owners_count":17858419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","powershell","profiles","scripts","windows-sandbox"],"created_at":"2024-08-13T07:03:30.988Z","updated_at":"2024-12-04T01:31:30.397Z","avatar_url":"https://github.com/flexxxxer.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"# WindowsSandbox-ConfigsAndScripts\n**WindowsSandbox-ConfigsAndScripts** is a set of commonly used [Windows Sandbox \nconfiguration files](https://learn.microsoft.com/en-us/windows/security/threat-protection/windows-sandbox/windows-sandbox-configure-using-wsb-file) \nfor software development, software testing, and isolated running of untrusted applications.\nBecause you cannot create Windows Sandbox profiles with preinstalled software and settings \nthis repository was made to automate frequently performed actions when starting Windows Sandbox\n(mainly pre-installing software and libraries, configuring, changing the appearance - turning on \na dark theme or high contrast mode).\n\n# Get Started\n## Requirements\n[Windows Sandbox](https://learn.microsoft.com/en-us/windows/security/threat-protection/windows-sandbox/windows-sandbox-overview)\nmust be installed (the link also shows installation methods and minimum system requirements).\n\n## Changing mapped folders paths\nMost Windows Sandbox configurations use mapped folders. The paths specified in the configurations may not be \nsuitable for your computer and will need to be changed. Because paths must be explicitly specified and cannot be \nautomatically substituted, let's look at an example.\n\n[Downloads.wsb](https://github.com/flexxxxer/WindowsSandbox-ConfigsAndScripts/blob/master/Downloads.wsb) \nconfiguration file, which has a mapped folder for the downloads folder:\n```xml\n\u003cConfiguration\u003e\n  \u003cVGpu\u003eEnable\u003c/VGpu\u003e\n  \u003cNetworking\u003eEnable\u003c/Networking\u003e\n  \u003cProtectedClient\u003eEnable\u003c/ProtectedClient\u003e\n  \u003cMappedFolders\u003e\n    \u003cMappedFolder\u003e\n      \u003cHostFolder\u003eC:\\Users\\%username%\\WindowsSandbox-ConfigsAndScripts\u003c/HostFolder\u003e\n      \u003cSandboxFolder\u003eC:\\Users\\WDAGUtilityAccount\\Desktop\\WindowsSandbox-ConfigsAndScripts\u003c/SandboxFolder\u003e\n      \u003cReadOnly\u003etrue\u003c/ReadOnly\u003e\n    \u003c/MappedFolder\u003e\n    \u003cMappedFolder\u003e\n      \u003cHostFolder\u003eC:\\Users\\%username%\\Downloads\u003c/HostFolder\u003e\n      \u003cSandboxFolder\u003eC:\\Users\\WDAGUtilityAccount\\Downloads\u003c/SandboxFolder\u003e\n      \u003cReadOnly\u003etrue\u003c/ReadOnly\u003e\n    \u003c/MappedFolder\u003e\n  \u003c/MappedFolders\u003e\n  \u003cLogonCommand\u003e\n    \u003cCommand\u003eC:\\Users\\WDAGUtilityAccount\\Desktop\\WindowsSandbox-ConfigsAndScripts\\SandboxStartups\\Downloads.wsb.cmd\u003c/Command\u003e\n  \u003c/LogonCommand\u003e\n\u003c/Configuration\u003e\n```\nIn this case, there are two HostFolder tags: \n1. `\u003cHostFolder\u003eC:\\Users\\%username%\\WindowsSandbox-ConfigsAndScripts\u003c/HostFolder\u003e`\nSpecifies the repository folder on the host machine to share into the sandbox. In this case, we specify our \nrepository folder with the necessary scripts to run it in the `\u003cCommand\u003e` tag. The folder must already exist on the host, \nor the container will fail to start. \n`\u003cSandboxFolder\u003eC:\\Users\\WDAGUtilityAccount\\Desktop\\WindowsSandbox-ConfigsAndScripts\u003c/SandboxFolder\u003e`\nSpecifies the destination in the sandbox to map the folder to. If the folder doesn't exist, it will be created.\n2. `\u003cHostFolder\u003eC:\\Users\\%username%\\Downloads\u003c/HostFolder\u003e` shows an example of sharing a user folder, such as Downloads, \nin a sandbox. If the `\u003cSandboxFolder\u003e` tag is not specified, the folder will be created on the desktop.\n\n`\u003cReadOnly\u003etrue\u003c/ReadOnly\u003e`\nIf true, the shared folder is read-only accessible from the container. The default value is false.\n\n`\u003cCommand\u003eC:\\Users\\WDAGUtilityAccount\\Desktop\\Scripts\\SandboxStartups\\Downloads.wsb.cmd\u003c/Command\u003e`\nSpecifies a single command that will be invoked automatically after the sandbox logs on.\nMake sure, your repository folder must be shared into to the sandbox, to run the script in the tag above. Otherwise a running *.wsb file \nwill cause a crash.\n\nAny \u003cHostFolder\u003e tag has path, which depends on your computer's username and file structure, and it needs to be changed by your requirements.\n\n## Ready-to-use configuration files and their description\n[DevEnv.wsb](https://github.com/flexxxxer/WindowsSandbox-ConfigsAndScripts/blob/master/DevEnv.wsb): changes the\nappearance of the system by applying a Dark Mode, enabling dev mode in system, showing file extensions and hidden\nfiles and folders in explorer, installing .NET (6, 7, Legacy Framework from 4.6.2 up to 4.8.1), latest PowerShell,\nC++ Redistributable packages from 2008 up to latest (2022), Firefox and Visual Studio Code.\n\n[DevEnvHighContrast.wsb](https://github.com/flexxxxer/WindowsSandbox-ConfigsAndScripts/blob/master/DevEnvHighContrast.wsb): \nlike previous one, but instead of applying a Dark Mode, this applying a high contrast.\n\n[Downloads.wsb](https://github.com/flexxxxer/WindowsSandbox-ConfigsAndScripts/blob/master/Downloads.wsb): \nenabling dev mode in system, showing file extensions and hidden\nfiles and folders in explorer, opens explorer window at mapped from host downloads folder.\n\n[DownloadsDark.wsb](https://github.com/flexxxxer/WindowsSandbox-ConfigsAndScripts/blob/master/DownloadsDark.wsb): changes the\nlike previous one, but in a Dark Mode.\n\n[DownloadsHighContrast.wsb](https://github.com/flexxxxer/WindowsSandbox-ConfigsAndScripts/blob/master/DownloadsHighContrast.wsb): changes the\nlike previous one, but instead of applying a Dark Mode, this applying a high contrast.\n\n## How its working\nEach `ConfigurationName.wsb` has a `ConfigurationName.wsb.cmd` and a `ConfigurationName.wsb.ps1`. Using `\u003cLogonCommand\u003e`\n`ConfigurationName.wsb` runs the `ConfigurationName.wsb.cmd` script in `Windows Sandbox`. Further, \n`ConfigurationName.wsb.cmd` allows the execution of any PowerShell scripts in the system (by default this is \ndisabled for security reasons, but we are in a virtual sandbox), after which it launches `ConfigurationName.wsb.ps1`, \nwhich launches scripts that execute other scripts that automate routine (installing software and libraries, \nconfiguring, changing the appearance, etc).\n\n# FAQ\nQ: When i launching some `.wsb` configuration, then i have error \"The configuration file was invalid\" with \n\"The system cannot find the path specified\".\n\nA: Check all `\u003cHostFolder\u003e` paths for validity and change change if path is invalid.\n\nQ: When i launching some `.wsb` configuration, then i have error \"only one running instance of windows sandbox is allowed...\".\n\nA: Kill stucked `Windows Sandbox` process in Task Manager. (Hotkey: Ctrl+Shift+ESC)\n\nQ: Downloading and installing software in Windows Sandbox is too long. How can i fix it?\n\nA: Run `UpdateCachedExes.ps1` (which in root of repo) before running Windows Sandbox. This script simply \ndownloads the .exe/.msi/etc application installer files to the CachedExes folder, which is located in the folder \nnext to UpdateCachedExes.ps1. **It is enough to run this script once, it does not need to be run every time before \nstarting Windows Sandbox**.\n\nQ: When i using VPN at host, internet in Windows Sandbox not working. How to fix that?\n\nA: No way to fix that. Need to wait for a fix from microsoft.\n\n# License\nWindowsSandbox-ConfigsAndScripts is Copyright © 2023 flexxxxer Aleksandr under the [Apache License, Version 2.0](https://github.com/flexxxxer/WindowsSandbox-ConfigsAndScripts/blob/master/LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexxxxer%2FWindowsSandbox-ConfigsAndScripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexxxxer%2FWindowsSandbox-ConfigsAndScripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexxxxer%2FWindowsSandbox-ConfigsAndScripts/lists"}