Windows 10: How Windows Sandbox config files work

Discus and support How Windows Sandbox config files work in Windows 10 News to solve the problem; Microsoft is working on Windows Sandbox, a sandboxed environment for the Windows operating system, currently. The feature is being tested in Windows... Discussion in 'Windows 10 News' started by GHacks, Feb 22, 2019.

  1. GHacks
    GHacks New Member

    How Windows Sandbox config files work


    Microsoft is working on Windows Sandbox, a sandboxed environment for the Windows operating system, currently.

    The feature is being tested in Windows 10 Insider Builds currently and it is possible that Windows Sandbox will find its way into Windows 10 version 1903.

    The initial version of Windows Sandbox was quite basic: users could launch it on Windows 10 devices and use it, but that was about the scope of it.

    Sandbox Config files


    How Windows Sandbox config files work SandboxConfigFile.png

    Starting with the latest builds, it is now possible to use config files to customize certain aspects. Config file support is basic at this point but it allows administrators and users to launch apps or scripts automatically in the sandbox. In other words: you may run something in the sandboxed environment automatically.

    The config files use XML and have the extension .wsb. You may run any .wsb file with a double-click or by running it from the command line or by using scripts.

    Windows Sandbox .wsb scripts support the following configuration options currently:

    • Enable or disable the virtualized GPU.
    • Enable or disable networking in the sandbox.
    • Share folders from the host.
    • Run a startup script or program.

    Most options are straightforward at this point in time.

    Virtualized GPU

    • <VGpu>Disable</VGpu> -- Disables virtual GPU support in the sandbox. Software rendering will be used.
    • <VGpu>Enable</VGpu> -- Enables virtual GPU support.

    Networking:

    • <Networking>Disable</Networking> -- Disables networking in the sandbox.
    • <Networking>Enable</Networking> -- Enables networking in the sandbox.

    Shared Folders:

    <MappedFolder>
    <HostFolder>path to the host folder</HostFolder>
    <ReadOnly>value</ReadOnly>
    </MappedFolder>

    You need to specify a folder that you want to share with the host system, e.g. c:\virtual, and whether you want it to be read-only or support write operations as well.

    ReadOnly values are true (make it read-only) or false (read and write support).

    Note that folders are always mapped under the path C:\Users\WDAGUtilityAccount\Desktop.

    Command on Logon

    <LogonCommand>
    <Command>The command</Command>
    </LogonCommand>

    You may specify a file name and path or a script. The command explorer.exe would work, as would reference to a script, e.g. C:\users\wdagutilityaccount\desktop\test\start.cmd.

    Example XML file

    <Configuration>
    <VGpu>Disable</VGpu>
    <Networking>Disable</Networking>
    <MappedFolders>
    <MappedFolder>
    <HostFolder>C:\Users\Martin\Downloads</HostFolder>
    <ReadOnly>true</ReadOnly>
    </MappedFolder>
    </MappedFolders>
    <LogonCommand>
    <Command>explorer.exe C:\users\WDAGUtilityAccount\Desktop\Downloads</Command>
    </LogonCommand>
    </Configuration>

    Save the file as something.wsb and launch it whenever you want to run the sandbox with this configuration. It is pretty basic: disables the virtual GPU and networking, maps the Downloads folder of the user account Martin, and launches File Explorer in the sandbox that displays the Downloads folder.

    Closing Words


    Config file support extends Windows Sandbox functionality significantly as you may use these files to share folders with the sandbox and run scripts. You could use it to map a downloads folder and run downloaded files in the sandbox for that extra bit of security.

    We will update the guide when new features are introduced.

    Now You: What is your take on the Windows Sandbox so far? What would you like to see?

    Ghacks needs you. You can find out how to support us here or support the site directly by becoming a Patreon. Thank you for being a Ghacks reader. The post How Windows Sandbox config files work appeared first on gHacks Technology News.

    read more...
     
    GHacks, Feb 22, 2019
    #1

  2. QUESTION: MS Word 2013 - Possible to run PORTABLE + SANDBOXED?


    Dear Members:

    FYI: I have annotated #Bo.Elam notes to improve visual acuity to facilitate my study and implementation.
    I hope these may proves helpful to anyone else interested in these excellent recommendations and instructions from Bo.

    Positively,~ Alan

    P.S. Please forgive excess vertical spacing between paragraphs... does NOT provide WYSWYG formatting control.



    QUESTION: MS Word 2013 - Possible to run PORTABLE + SANDBOXED?

    Post - » 27 Jun 2018 at 03:23 PM

    • Would it be possible to provide explicit instructions as a reference...
    • How to create a dedicated sandbox for Libre

    Post - bo.elam » 27 Jun 2018 at 09:59 PM [annotated by AB]

    • To create a new sandbox
    • go to Sandboxie control>Sandbox>Create new sandbox >
    • in the screen that opens... option to name the new sandbox as you wish.
    • Since this sandbox is going to be your dedicated Libre Office sandbox, name it Libre.
    • You also have the option to either copy settings from existing sandboxes or not to >
    • choose None.


    • The sandbox you created comes with default settings.
    • In a default settings sandbox, all programs that attempt to start and run in the sandbox can run... can have access to the internet... have access to all files and folders in your system.


    • Next step is to restrict what programs are allowed to do in the sandbox.
    • ... new sandbox restrict it as tight as possible without losing any usability... I try to achieve a balance between usability and security and always get it done.
    • So, in the end, I am always able to run programs in the sandbox same as if I was not using Sandboxie... If you set a sandbox correctly, the interaction between sandboxed programs and the non sandboxed environment should be flawless.

    Libre is:

    • very easy to setup to run properly in the sandboxed environment.
    • With a few changes to default settings you can set a very secure sandbox for Libre without losing usability.


    1. Make soffice.bin a Forced program.

    • ... any Office file that runs in the system, will run sandboxed automatically in the Libre Office.
    • It makes sandboxing automatic
    • No thinking required to sandbox files.


    • go to Sandbox settings in your Libre Office sandbox >
    • Sandbox settings>Program Start>Forced programs >
    • click Add program >
    • ... navigate to soffice.bin
    • ... select it and add it >
    • or you can write it in the block there for that purpose.


    2. In this step, you restrict programs that can run.

    • Once you add programs in this restriction tab, this will be the only programs allowed to run in the Libre sandbox.
    • Any other program that attempts to run, it will be blocked.

    For Calc, Writer, Impress, etc, to run in the sandbox, allow:

    • soffice.bin
    • soffice.exe
    • dllhost.exe


    • You really dont have to allow dllhost but for a more seamless interaction between SBIE and the non sandboxed system I recommend you allow it to run.

    So, go here to add the [3] exes I wrote above:

    • Sandbox settings>Restrictions>Start/Run access
    • click Add program
    • select [3] exes


    3. Internet access.
    Since you don't need Office files to have access to the internet and Libre doesnt require it to work properly, for security

    • disallow all programs from having access to the internet.

    • Sandbox settings>Restrictions>Internet access
    • click Block all programs
    • Once you do this, there is no phoning home.


    4. Drop rights. This setting is helpful if you run your system as an Administrator. I do, so I use it.

    • This setting strips Administrator rights from programs running in this sandbox.
    • So, if something malicious gets to run, it can't install anything in the sandboxed environment.
    • Sandbox settings>Restrictions>Drop rights
    • click this option.

    5. Another important setting you want to implement are the ones that help you protect your sensitive files and folders from being stolen.

    • Remember, by default, sandboxed programs can read all files and programs that are in the system.
    • So, you want to block sandboxed programs from accessing your sensitive files and folders.
    • We already disallowed all programs:
      • that run in the Libre sandbox from having internet access
      • restricted to a few the programs allowed to run
      • so even if your personal files and folders are accessed, the chances an infected Office file steals your files and phone home are close to none.
    • But even so, this is a great setting that keeps your files from getting stolen.
      • This setting is more important in sandboxes where you allow access to the internet, like your browsers sandboxes.

    To restrict access to files and folders, go here:


    Sandbox settings>Resource access>File access>Blocked access

    • click Add for navigating to select the files and folders you like to block sandboxed programs from having access/read.


    There are other setting related to access but you can start with the one above.


    6. Set the sandbox to delete on closing sandboxed programs.

    • Sandbox settings>Delete>Delete Invocation
    • tick Automatically delete contents of the sandbox


    7. Saving files you create or Edit in the sandbox.

    • For convenience, you want to be able to save files.
    • ... when you delete contents of the sandbox, the only changes that will survive deletion made by sandboxed programs of the sandbox are the ones you allow.
    • Like for example, an edit you do to an Excel file...
      • if you would like to save that change, you save it.
      • If you dont want to save the change, you dont save it when you get the SBIE prompt to do it after you close sandboxed programs.


    • In my case, I only save Office files to the desktop. So I add Desktop in the tab below.
      • Sandboxie will save files only to the folders you add in Quick recovery:
      • Sandbox settings>Recovery>Quick recovery



    Thank you again, #bo.elam !
     
    ab1kenobee, Feb 22, 2019
    #2
  3. BF3 Config Utility

    New! BF3 Config Utility v1.3

    Change Log v1.3
    • New 5.1 setting!
    • Added call outs to settings.
    • Changed both Profile config and Config File display text to richtext format. Now you can see the settings easier. I plain to turn the Config File Text display into a Real Text Editor, and not just a crappy notepad viewer. This new display will send the return carriage, and not show it.
    • New screen shots of the General Tab and Config File tab have been added to the OP.
    Version v1.2 got 233 downloads! *Toast :toast: Thanks everyone! *Toast :toast:
     
    Mindweaver, Feb 22, 2019
    #3
  4. How Windows Sandbox config files work

    Windows 10 infinite restart black screen


    The tutorials provided are just a list of troubleshooting steps. Use only the steps which apply to you.

    Since none of the troubleshooting steps here worked, I'd suggest you do a Clean install.

    John
     
    AmericanPharaoh, Feb 22, 2019
    #4
Thema:

How Windows Sandbox config files work

Loading...
  1. How Windows Sandbox config files work - Similar Threads - Sandbox config files

  2. Windows Sandbox: Specify System Locale From Config File

    in Windows 10 Gaming
    Windows Sandbox: Specify System Locale From Config File: Hello, I am very new to windows sandbox and other windows "power user" features.I would like a isolated and disposable environment to test software, which is why I thought sandbox would be a better choice than Windows Virtual Machines. The system local of sandbox instance...
  3. Windows Sandbox: Specify System Locale From Config File

    in Windows 10 Software and Apps
    Windows Sandbox: Specify System Locale From Config File: Hello, I am very new to windows sandbox and other windows "power user" features.I would like a isolated and disposable environment to test software, which is why I thought sandbox would be a better choice than Windows Virtual Machines. The system local of sandbox instance...
  4. Windows Sandbox: Specify System Locale From Config File

    in AntiVirus, Firewalls and System Security
    Windows Sandbox: Specify System Locale From Config File: Hello, I am very new to windows sandbox and other windows "power user" features.I would like a isolated and disposable environment to test software, which is why I thought sandbox would be a better choice than Windows Virtual Machines. The system local of sandbox instance...
  5. How to transfer Files to Windows Sandbox

    in Windows 10 News
    How to transfer Files to Windows Sandbox: [ATTACH]If you have enabled Windows Sandbox on your Windows 11 or Windows 10 computer, you can configure & manage a sandbox on your device using the Sandbox Configuration Manager. In this post, we will show you how to transfer Files to Windows Sandbox in Windows 11/10. How to...
  6. windows sandbox not working

    in Windows 10 Software and Apps
    windows sandbox not working: when i try to run windows sandbox it says it failed to initialize, i enabled everything i need to in control panel, but it still says it, how can i fix it? https://answers.microsoft.com/en-us/windows/forum/all/windows-sandbox-not-working/f3562742-e6ef-4eef-b3d8-a44f6a0047d2
  7. Windows Sandbox not working

    in Windows 10 Ask Insider
    Windows Sandbox not working: [ATTACH] I have recently started messing around with windows sandbox and I wanted to enable VGPU. It didn't work and I think the problem has to do with sandbox not having the correct WDDM version. (I believe it is required to have version 2.6) But currently it is at 1.3...
  8. Windows Sandbox not working

    in Windows 10 BSOD Crashes and Debugging
    Windows Sandbox not working: Hello everyone, I am unable to use the Sandbox. It starts, but the display is just blinking every 2 seconds. You cannot click on anything inside the Sandbox. I dont have Hyper-V, Hypervisor, or Container installed. And the known "solutions" like the 100% scale also didn't...
  9. windows sandbox Not working

    in AntiVirus, Firewalls and System Security
    windows sandbox Not working: HI all so i have the new release off 1903 installed it on the 21 build number 18362.116 and when i first installed it all worked great sandbox and all now windows sandbox opens but sits on its blue splash screen and does nothing at all? i see errors in the even viewer about...
  10. Windows Sandbox now has support for simple config files in Windows 10

    in Windows 10 News
    Windows Sandbox now has support for simple config files in Windows 10: Since the initial announcement of Windows Sandbox, we have received overwhelmingly positive feedback. Thank you for your support! We are glad that this feature resonates with the Windows community. One of the most requested features from our customers is the ability to...

Users found this page by searching for:

  1. win 10 sandbox config

    ,
  2. how does Windows sandbox work