Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Use Windows Sandbox to Test an App in a Temporary Desktop

Enable Windows Sandbox, test an installer in a fresh desktop, and configure a session with networking and clipboard sharing turned off.

Table of Contents

Windows Sandbox opens a temporary Windows desktop where you can test an app without installing it on your main system. Closing the window discards changes inside the sandbox. Network access, clipboard sharing, and shared folders can still connect the session to your host or other systems, so choose the settings for the test you need.

Windows Sandbox: The Secret App That Lets You Open Anything Without Risk Picture 1

Enable Windows Sandbox

  1. Check that your Windows edition supports Sandbox. Microsoft lists supported Pro, Enterprise, and Education editions and requires hardware virtualization. Check Task Manager > Performance > CPU for the virtualization status.
  2. Search Start for Turn Windows features on or off. Select Windows Sandbox, click OK, and restart when prompted.
  3. Open Windows Sandbox from Start. See Microsoft’s installation requirements if the option is missing, or the Sandbox startup troubleshooting guide if it fails to launch.

Windows Sandbox: The Secret App That Lets You Open Anything Without Risk Picture 2

Windows Sandbox: The Secret App That Lets You Open Anything Without Risk Picture 3

Create a session with fewer host connections

For an offline test, create a new folder on the host, such as C:\SandboxInput, and put only the installer you intend to test in it. Check the folder path in File Explorer. The screenshot illustrates copying a path. Use your dedicated test folder rather than sharing your entire Downloads folder.

Windows Sandbox: The Secret App That Lets You Open Anything Without Risk Picture 4

Paste the following into Notepad. Save it as OfflineTest.wsb using Save as type > All files so it does not end in .txt.

<Configuration>
  <Networking>Disable</Networking>
  <ClipboardRedirection>Disable</ClipboardRedirection>
  <MappedFolders>
    <MappedFolder>
      <HostFolder>C:\SandboxInput</HostFolder>
      <ReadOnly>true</ReadOnly>
    </MappedFolder>
  </MappedFolders>
</Configuration>

Windows Sandbox: The Secret App That Lets You Open Anything Without Risk Picture 5

Double-click the saved file on the host. Check that the folder is visible and that the session has no network access. A read-only folder still lets software in the session read what you put there. The Microsoft WSB reference documents the configuration options.

Windows Sandbox: The Secret App That Lets You Open Anything Without Risk Picture 6

Use the result for what you tested

An app that works in Sandbox may behave differently on your host. An installer that needs the internet may fail with networking disabled. A quiet session also does not prove that a download is trustworthy. If a file looks suspicious, inspect its source and reputation before opening it.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.