How to Test Registry Changes Safely in Windows Sandbox or a Virtual Machine Before Touching Your PC

Glass cube on a desk holding a small monitor and folder tree, with a padlock on its side and a large monitor behind
Glass cube on a desk holding a small monitor and folder tree, with a padlock on its side and a large monitor behind

Last reviewed: November 25, 2026 (Pacific). Steps compared with Microsoft documentation where it exists; none was run on a real PC. The picture at the top is an illustration, not a screenshot.

Some registry changes come from a program you want to try. Others come from a tip you read online. Either way, you should test registry changes safely before you apply them to your own PC. This guide covers two places to test: Windows Sandbox and a Hyper-V virtual machine. It also explains what a test can and cannot prove. For background on the registry itself, see the registry explained: hives, keys and values.

Quick answer: test registry changes safely first

Quick answer

  • Never import a .reg file you have not read. Open it in Notepad first, not by double-clicking.
  • Export a backup of the branch you might touch, and keep it in a private folder.
  • Windows Sandbox is available on Windows Pro, Enterprise and Education. Microsoft says it is not supported on Windows Home.
  • On Pro and above, a Hyper-V virtual machine with a checkpoint is the other option. Take the checkpoint before the test.
  • A clean test is only a hint. Hardware, drivers and your own data can still behave differently.

In this guide

Why test registry changes before touching your PC?

The registry stores settings that many programs read. A wrong value can make one app fail. It can also make Windows behave in odd ways. Some of these problems are hard to undo by hand, especially when you are not sure which value caused them.

Testing means running the same change somewhere else first. You watch what happens, then decide. You do not experiment on your live settings. Microsoft's Learn page on Hyper-V checkpoints says you may want a checkpoint "before making software configuration changes, applying a software update, or installing new software." The same habit applies to a disposable copy of Windows.

If a setting is already misbehaving, the symptoms can look similar to other problems. Compare them with the common signs of registry problems before you assume a change is the cause.

What a test gives you

A test gives you three things. First, a clean starting point that is separate from your everyday apps. Second, a place to see the result of a change without touching your own profile. Third, a short record you can compare later with your real PC.

A test does not give you proof. It gives you evidence about one copy of Windows. Keep that limit in mind through the rest of this guide.

Before you start: backup and edition check

Before you start

Back up your personal files first. Then back up the registry branch you might touch. Read backing up the registry before any change before you export anything. If you prefer a whole-PC option, read making a system image backup of your PC. If this PC is managed by an organization, ask the administrator before you turn on features or run exports.

Good to know

Exported .reg files can hold account names, folder paths and product details. Keep them in your own folder. Do not share them publicly.

If you read a .reg file that you downloaded, check whether it is safe to open first. The steps are in checking whether a .reg file is safe to run. This guide never asks you to run one on your real PC.

Check your Windows edition

Open Settings, choose System, then About. The edition appears near the top of the page. This screen is general guidance. The Microsoft pages we opened do not describe it. The edition decides which test place you can use.

If you see an access denied message during the steps, stop. Read fixing registry permission errors and ask the administrator if needed. Do not open a window as administrator just to get past the message.

The route at a glance

Follow this route in order. Only the test place changes anything during the trial. Your real PC changes only when you decide to act.

  1. Read the file Open the .reg file in Notepad and read every line. Do not import it.
  2. Back up on the real PC Export the branch you might touch to a private folder.
  3. Test in a disposable place Run the change in Windows Sandbox or a virtual machine.
  4. Compare the results Note each registry line that changed, and what the program did.
  5. Decide Make no change on your own PC unless the software vendor's instructions call for it, and back up first.

Option 1: Windows Sandbox

Windows Sandbox is a lightweight, temporary desktop environment built into some editions of Windows. Microsoft's overview page describes it as a disposable place to run untrusted applications. It is the quickest option when your edition supports it.

Requirements from Microsoft

Microsoft's install page lists these requirements. Check each one before you start.

  • Windows 11, or Windows 10 version 1903 or later.
  • Arm64 or AMD64 processor architecture.
  • Virtualization enabled in the BIOS. Read turning on virtualization in your BIOS if you are unsure.
  • At least 4 GB of RAM, with 8 GB recommended.
  • At least 1 GB of free disk space, with an SSD recommended.
  • At least two CPU cores, with four cores and hyper-threading recommended.

The overview page lists Windows Pro, Enterprise, Pro Education and Education as supported editions. It also says Windows Sandbox is currently not supported on Windows Home.

Turn the feature on

Microsoft's install page gives two routes. The first uses the Windows features tool. Select the search bar, type Turn Windows features on or off, open it, select Windows Sandbox, and choose OK. Restart if Windows asks you to.

The page also says that if the Windows Sandbox option is unavailable, the computer does not meet the requirements. The second route is PowerShell. Open PowerShell as administrator, then run this command:

Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -All -Online

Turning on the feature is a change to your PC. Do it only when you are allowed to, and note the date you did it.

What happens when you close it

Microsoft's overview says closing the sandbox deletes all software, files and state. Each launch gives a fresh instance. The page calls the environment disposable. There is one exception on Windows 11 version 22H2 and later: data can persist through restarts started inside the sandbox.

Networking is on by default. Microsoft's configuration page warns that this can expose untrusted applications to the internal network. For a registry test, you may want to turn networking off. The settings for that are in the Windows Sandbox how-to for suspicious files, which also covers the .wsb options. This guide does not repeat that walkthrough.

Bringing a .reg file into the sandbox

Microsoft's configuration page says clipboard redirection is enabled by default. It describes the default as copy and paste between the host and the sandbox being permitted. A managed setup can restrict this. The page also says a protected client may restrict copying files in and out.

The same page says that with clipboard redirection enabled, you can copy files from the host and paste them into the Windows Sandbox window. That is the route to use for a .reg file. Copy the file on your PC, then paste it on the sandbox desktop. Do not open it on the host first.

  1. Copy the file on the real PC Select the .reg file in File Explorer and copy it.
  2. Paste it into the sandbox Paste onto the sandbox desktop, then open the copy in Notepad inside the sandbox.
  3. Read it again inside the sandbox Check the keys and values before any change.
  4. Note the starting values Open Registry Editor inside the sandbox and look at the branch the file touches.
  5. Open the file's effect only inside the sandbox and look at the result there Then compare the branch with your notes, and close the sandbox to discard it.

The sandbox Registry Editor is the place to look at the result. Use it to see what changed, not to tidy up. After you look at the result in the sandbox, you can read the value with PowerShell; see read registry values with Get-ItemProperty. To read a single value at the prompt, see reg query for reading one registry value.

Option 2: a Hyper-V virtual machine

A virtual machine is a separate computer that runs inside your PC. Hyper-V is Microsoft's built-in virtualization feature. Microsoft's create-a-virtual-machine page lists Windows client with Hyper-V enabled as a prerequisite. It also lists membership in the Administrators or Hyper-V Administrators group, enough memory and enough disk space.

The Learn page we opened does not list editions for Hyper-V. As general guidance, Hyper-V is found on Pro and above, not on Windows Home. Check your edition first, as described above.

Create the virtual machine

Open Hyper-V Manager. If you cannot see it, Microsoft's page says the Hyper-V role must be installed. Then use the New option to create a virtual machine. The wizard asks for a name, memory, a virtual disk and, optionally, an operating system image. The screens of the wizard are general guidance. Give the virtual machine its own clear name, such as a test name you will recognize later.

Microsoft's page also says that a virtual switch is optional. Networking in the virtual machine is a separate choice, so decide it before the test.

Take a checkpoint before the test

A checkpoint records the state of a virtual machine at one point in time. Microsoft's checkpoints page says that you can revert the virtual machine to the state it was in when the checkpoint was taken. Take the checkpoint with the clean Windows install running, before you bring in the .reg file.

The Microsoft page describes two kinds. A standard checkpoint returns the system to the state it had, with programs open. A production checkpoint, when applied, leaves the virtual machine off. Read the page on your own Hyper-V version before you choose.

Revert after the test

When the test is done, apply the checkpoint in Hyper-V Manager. The virtual machine returns to the saved state. Then you can run the next test from the same starting point. Keep a short note of what each checkpoint was for.

Other virtual machine programs

Other virtual machine programs exist. Their menus, snapshot names and rules differ, and this guide does not cover any of them. Use the same logic whichever you choose. Take a clean snapshot before the change, keep the test copy separate from your real PC, and do not import a file you have not read.

Compare the results and decide

The comparison is the point of the test. Before the test, export the branch on your real PC so you have a record of what it held. Use a placeholder name here and replace it with the real product branch.

reg export "HKLM\SOFTWARE\ExampleVendor" "%USERPROFILE%\Documents\RegBackup\vendor-before.reg"

Exporting only writes a copy. It does not import anything. Keep the file private. If you want a full guide on comparing exports before and after an install, read comparing registry changes before and after an install.

After the test, write down three things: which lines changed, what the test showed, and what you still cannot explain. If the test shows errors, do not apply the change to your PC. If the test is clean, you still have a decision to make, and a hint is not a guarantee. If an earlier change already damaged a setting, read restoring the registry after a cleaning tool before you do anything else.

What a test can and cannot prove

A test is useful, but it has clear limits. Knowing them stops you from trusting a clean result too far.

What a test can show

A test can show which keys and values a change writes in that copy of Windows. It can show whether the program starts, whether an error appears, and whether the change is written under the branch you expected. Those are useful facts. They help you ask the vendor better questions.

What a test cannot prove

A test cannot match your PC exactly. Hardware, drivers, installed software and per-user data differ from the test copy. A 32-bit program can read a different view of the registry, so read the Wow6432Node and 32-bit registry views before you judge a copy as wrong. A setting that will not stay set is another matter, covered in registry changes that do not stay saved. Some writes that Windows redirects are covered in registry virtualization and the VirtualStore.

A test also cannot show what a restore point would do. Whether System Restore covers a registry change is a separate question. Read whether System Restore restores the registry. For the restore steps themselves, see how to use System Restore in Windows.

Finally, a test does not clean up. If a test shows leftover entries from an old program, do not remove them in the test and copy the result. Read leftover registry entries after uninstalling and use the vendor's own uninstaller.

Sandbox, virtual machine or real PC: a comparison

The table compares the three places you might work. Use it to choose the right one for the change in front of you.

FeatureWindows SandboxHyper-V virtual machineReal PC
Edition neededPro, Enterprise or Education, per MicrosoftPro and above, as general guidanceYour current edition
Keeps changes after closingNo, closing discards the stateYes, until you revert to a checkpointYes, every change stays
Undo methodClose and start againApply a saved checkpointBackup and a careful manual process
Best useA quick look at one changeRepeated tests from one clean stateOnly after the test and the backup agree
Main limitNot available on Windows HomeNeeds setup and disk spaceA mistake stays unless you backed it up

Decision tree: where to test

Use this order to choose. Stop at the first answer that fits your situation.

  • Is this Windows Home?
    • Yes: Windows Sandbox is not supported. Use a separate test machine, or do not make the change.
    • No: go to the next question.
  • Do you have Pro, Enterprise or Education, with virtualization turned on in the BIOS?
    • Yes: use Windows Sandbox for a single quick look.
    • No: turn on virtualization first, or use a test machine.
  • Do you need to repeat the test from the same starting point?
    • Yes: use a Hyper-V virtual machine with a checkpoint on Pro and above.
    • No: Windows Sandbox is enough for a single look.
  • Can you explain every changed line?
    • Yes: write down the decision and ask the vendor if needed.
    • No: do not apply the change. Ask the vendor first.

Windows 10 note

Windows 10 note

Support for Windows 10 ended on October 14, 2025. Consumer Extended Security Updates run to October 12, 2027, according to Microsoft's Extended Security Updates page. Windows Sandbox is listed for Windows 10 version 1903 or later, so check your build first. More help is in the PC repair guides.

Frequently asked questions

Setup and editions

Can I use Windows Sandbox on Windows Home?

No. Microsoft's overview page says Windows Sandbox is currently not supported on Windows Home. Use a separate test machine, or do not make the change on your PC.

Do I need virtualization turned on?

Yes. Microsoft's install page lists virtualization enabled in the BIOS as a requirement. If the Windows Sandbox option is missing from the features list, check this first.

Is Hyper-V the same as Windows Sandbox?

No. Windows Sandbox is a temporary desktop that discards its state when closed. Hyper-V is a virtualization feature that can run full virtual machines, which you can save with checkpoints.

Do I need administrator rights?

Turning on Windows Sandbox or Hyper-V needs administrator rights, and Microsoft's Hyper-V page lists the Administrators or Hyper-V Administrators group. If you are on a managed PC, ask the administrator first.

Testing and safety

Should I import the .reg file in the sandbox?

Only after you have read it, and only inside the sandbox. The sandbox is disposable, so the change disappears when you close it. Your real PC stays untouched by that test.

Does a clean test mean the change is safe?

No. A clean test is a hint. Hardware, drivers, installed software and per-user data can differ from the test copy, so the result does not prove what your PC will do.

What if I already imported a file on my real PC?

Stop and do not import anything else. Check your backup, read the diff carefully and ask the vendor. Do not delete keys in a hurry. Look at the related guides on backups before you change anything.

Can I copy a diff from the sandbox onto my PC?

No. Copying a diff into your PC to import it defeats the test. Use the sandbox result as evidence, write down what it showed, and decide on the real PC with a fresh backup in hand.

How this guide was checked

The requirements, editions, clipboard default, networking default and sandbox behaviour were checked against the Microsoft Learn pages listed below. The Hyper-V prerequisites and the checkpoint wording were checked against Microsoft Learn pages too. Nothing was run on a real PC, and no lab result is claimed. Not confirmed on an opened Microsoft page: Hyper-V availability on Pro editions, the exact wizard screens, the Settings path to your edition, and the claim that a sandbox result predicts a real PC. Those points are worded as general guidance. The top picture is an illustration.

Sources