Need to copy, move, or get files into Windows Sandbox? It is pretty straightforward. Here is how to transfer files to the Windows sandbox.
If there is one feature that I’m glad Microsoft added to Windows 10 and 11 is the Windows Sandbox. As the name implies, Windows Sandbox is a simple yet effective way to test Windows settings, configurations, and trusted or untrusted applications.
To get the most out of the sandbox, you should be able to transfer files to Windows Sandbox. For example, you might have to transfer an application’s exe file from the host machine to Windows Sandbox to test that application. Copying or transferring a file helps you install and execute the application in the sandbox.
However, to make Windows Sandbox as secure as possible, there are limited ways to transfer files to and from Windows Sandbox. The good thing is, if you want to move files to Windows Sandbox or get files into Windows Sandbox, it is pretty easy to do.
Let me show you how to transfer files to Windows Sandbox in simple and easy steps.
Table of contents:
- Copy and paste to transfer files
- Use a Windows Sandbox configuration file
- What is Windows Sandbox?
Note: The steps below will work in Windows 10 and 11.
Note: I assume you have already enabled Windows Sandbox. If not, enable Windows Sandbox and then follow the below steps.
Copy and paste to transfer files to Windows Sandbox
One of the easiest ways to transfer files to Windows Sandbox is copying and pasting. i.e., copy the file or folder you want to transfer and paste it into the sandbox. It is that simple. Of course, you can copy and paste multiple files at a time.
Here are the exact steps if you need more guidance.
First, open the Windows Sandbox. You can search for it in the Start menu.
After opening the Windows Sandbox, copy the file or folder you want to transfer with the “Ctrl + C” keyboard shortcut.
Next, go to the Windows Sandbox desktop and paste it with the “Ctrl + V” keyboard shortcut. Depending on the file or folder size, it can take a couple of seconds to transfer. Once done, you will see it on the sandbox desktop.
Remember that the transferred file or folder is deleted from the sandbox environment when you close the Windows Sandbox. This is because Windows will revert all changes made to the sandbox environment when you close it. This includes deleting files or folders you created or transferred. If you want the transferred files to be always available, follow the second method.
Note: You would think drag and drop would work in Windows Sandbox. However, as of writing this, Windows Sandbox doesn’t support drag and drop.
Use a Windows Sandbox configuration file to transfer files
The disadvantage of the first method, though easy, is that the transferred files are not persistent. The transferred files are deleted as soon as you close or shut down the Windows Sandbox.
If you want the files to be always available, you have to map a shared folder with Windows Sandbox. Once done, transfer the target file or folder to the shared folder, and you can access it from the Windows Sandbox.
The good thing is, it is pretty easy to do.
You need to create a Windows Sandbox configuration file called “MappedFolders.wsb” using Notepad, paste a configuration script, type the shared folder path in the added script, save it, and launch Windows Sandbox using that script. All this will show the mapped folder on the Windows Sandbox desktop.
You can access all the files and folders as and when needed, provided that you’ve first transferred them to the shared folder.
I’ve already written a detailed guide on mapping a shared folder to Windows Sandbox. Follow the linked guide, and you are good to go. You should be able to transfer files to Windows Sandbox in Windows 10 and 11 via the mapped shared folder.
What is Windows Sandbox?
If you don’t know, Windows Sandbox is a virtual OS environment within Windows 10 and 11. Windows Sandbox acts as a full-fledged OS with some minor limitations. However, it is still pretty lightweight compared to complete virtual machines created using VMware or VirtualBox. The good thing is that anything you do in Windows Sandbox stays inside the sandbox. That means you can safely test software and Windows settings without worrying about how it affects your main computer.
—
That is all. It is simple to copy, move, or transfer files to Windows Sandbox in Windows 10 and 11.
I hope this simple and easy Windows how-to guide helped you.
If you are stuck or need some help, comment below, and I will try to help as much as possible.
Windows Sandbox is a terrific feature introduced into Windows 10 and 11 (Pro versions only) which allows users to test software or surf around unknown sites in a safe/secure isolated environment.
- Please read: Surf & Test Software Safely in Windows Sandbox
But did you know you can easily share files and/or folders from the host system with the Windows Sandbox? Here’s how.
Believe it or not, this is achieved via a simple copy and paste.
- Navigate to the file or folder in the host system that you want to share with Windows Sandbox
- Right-click the file/folder and select Copy
- Move your mouse cursor into the Windows Sandbox and right-click any blank space
- From the menu, select Paste
That’s all there is to it. Because you’re working with a “copy” the original file or folder remains secure and untouched.
There is another method for sharing folders from the host system with Windows Sandbox through mapping which is achieved via the Windows Sandbox Configuration file. However, this method is somewhat complex and, as such, more suited for advanced users. Plus, as far as I am aware, mapping “shares” a folder with the host system rather than “copying” the folder from the host system which, in my opinion, creates a security risk.
That said, if you want to know more about mapping a folder, here is a guide from Microsoft: Windows Sandbox Configuration
—
How to Transfer Files to Windows Sandbox
Windows Sandbox is a lightweight, isolated desktop environment built into Windows 10 and Windows 11, designed for safely running untrusted software. With its convenience and security features, Windows Sandbox also raises a crucial question: how can users transfer files to and from this isolated environment? This article will explore the methods for file transfer to Windows Sandbox, covering the necessary steps, tools, and best practices to effectively manage files in this secure space.
Understanding Windows Sandbox
Before diving into file transfers, it’s essential to understand Windows Sandbox’s core functionalities. Windows Sandbox allows users to run applications without the worry of them affecting the host operating system. Each time you start Windows Sandbox, it’s like launching a fresh installation of Windows with its dedicated resources—meaning any changes or software installed during its session will not impact your main OS.
Prerequisites for Using Windows Sandbox
Before using Windows Sandbox, ensure you meet the following prerequisites:
-
Operating System: Windows Sandbox is available on Windows 10 Pro, Enterprise, and Education (version 1903 and higher) as well as Windows 11 Pro, Enterprise, and Education editions.
-
Hardware Virtualization: You must have virtualization enabled in your BIOS or UEFI settings. Windows Sandbox uses Hyper-V, which requires hardware-assisted virtualization.
-
System Requirements: Ensure you meet the minimum hardware requirements of Windows 10/11, including sufficient memory and storage.
-
Windows Features: Enable Windows Sandbox from the Windows Features menu, found via «Turn Windows features on or off» in Control Panel.
Options for File Transfer to Windows Sandbox
While Windows Sandbox offers a secure environment, its design prohibits direct file sharing with the host operating system to maintain system integrity. However, there are several methods to transfer files to Windows Sandbox:
-
Copy and Paste Method: The simplest way to transfer files to Windows Sandbox is using the clipboard. This method is limited to certain file types. You can copy text, images, or files from the host and paste them into the Sandbox.
Steps:
- Open Windows Sandbox.
- On the host machine, find the file you want to transfer.
- Copy it (Right-click → Copy or Ctrl + C).
- Click inside Windows Sandbox.
- Paste it (Right-click → Paste or Ctrl + V).
Limitations: This method works well for individual files or small data sets, but is not ideal for transferring large files or directories.
-
Shared Folder Method: This method involves creating a temporary shared folder on the host which Windows Sandbox can access via a network path.
Steps:
- Create a folder on your host machine (e.g.,
C:sandbox_share
). - Share this folder using Windows sharing settings.
- Open Windows Sandbox and access the shared folder via File Explorer by typing
\sandbox_share
.
Limitations: This method is more complicated and requires additional setup, and it may not be as secure as other methods.
- Create a folder on your host machine (e.g.,
-
Using ZIP Archives: If you have multiple files to transfer, consider compressing them into a ZIP archive.
Steps:
- On the host, gather the files you want to transfer and create a ZIP archive using built-in Windows options or third-party software.
- Once the archive is created, use the copy and paste method to transfer the ZIP file to Windows Sandbox.
- After pasting, extract the contents within Windows Sandbox.
Advantages: This method simplifies transferring multiple files, making it easier to keep related files organized.
-
Download via Browser: If files are hosted online, you can open the browser in Windows Sandbox and download the files directly.
Steps:
- Start Windows Sandbox.
- Open a web browser and navigate to the file’s download link.
- Download the file as you would on any regular computer.
Advantages: This method allows for easy file transfer without ever touching the host operating system.
-
Using Command Line for Advanced Users: If you’re comfortable with command-line operations, you can leverage Windows PowerShell or CMD scripts to transfer files.
Steps:
- Prepare a script on the host machine to download files automatically.
- Open Windows Sandbox, and run the script to execute the transfer.
Advantage: This method is highly customizable.
Security Considerations
While Windows Sandbox is designed for security and keeps a clean environment, there are still vital security measures you should consider when transferring files:
-
Use Trusted Sources: Only transfer files from trusted sources. Untrusted files can compromise the Sandbox environment.
-
Malware Scanning: Always run a scan on files before moving them into the Sandbox to prevent possible malware infections.
-
Cleanup After Use: Remember that any changes or files within Windows Sandbox are discarded once you close it. Thus, if you need to retain certain files, ensure you save them on the host first.
Best Practices for Using Windows Sandbox
As you familiarize yourself with file transfers in Windows Sandbox, adhering to some best practices can enhance your experience and security:
-
Organize Your Files: If you frequently use Windows Sandbox for testing, create a structured organization for the files you intend to use.
-
Backup Important Files: Be cautious with important files. Always back them up before transferring or testing within the Sandbox environment.
-
Regularly Update Your OS: Ensure your host OS is regularly updated. This not only protects your main system but also enhances the security of Windows Sandbox.
-
Monitor Performance: Keep an eye on resource usage when running Windows Sandbox. It utilizes system resources from the host, and if overloaded, it might affect the performance of both environments.
-
Familiarize Yourself with Limitations: Understand the limitations and capabilities of Windows Sandbox to better strategize your testing workflow.
Conclusion
Transferring files to Windows Sandbox provides a convenient mechanism for testing and examining software in an isolated environment, contributing significantly to security and stability. While its design inherently lacks direct communication with the host, the aforementioned methods—copying and pasting, shared folders, ZIP archives, downloading files through a browser, and utilizing command-line approaches—offer effective solutions for managing file transfers effectively and securely.
By following the steps outlined above and adopting best practices, users can navigate Windows Sandbox confidently, ensuring their testing activities are productive while maintaining the security of their primary operating system. As you explore file transfers, keep an eye on emerging practices and updates, as Microsoft frequently enhances the functionality and security of Windows Sandbox, making it one of the most powerful tools for isolated testing.
Download Windows Speedup Tool to fix errors and make PC run faster
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.
To get the most out of the sandbox, with the Windows Sandbox running, you can easily transfer files. As a security precaution, you might want to transfer an application’s exe file from the host machine to Windows Sandbox to test that application. By copying or transferring, you can install and execute the application in the sandbox.
If you need to copy, move, or get files into Windows Sandbox on your Windows 11/10 machine, you can do so in either of two ways as follows:
- Copy and Paste into Windows Sandbox
- Map a shared folder to Windows Sandbox
Let’s see both of the aforementioned methods in detail.
1] Copy and Paste into Windows Sandbox
The good old copy and paste is the easiest and quickest way to transfer files to Windows Sandbox in Windows 11/10. To transfer a file from your main Windows operating system (the Host), simply right-click on a file you want to transfer and select Copy, then go into the Windows Sandbox (the Guest) and right-click on the desktop and click on Paste to transfer the file. Likewise, you can transfer files from the Sandbox to the main OS.
The drawback or disadvantage of this easy method is that the transferred files are deleted as soon as you close or shut down the Windows Sandbox.
2] Map a shared folder to Windows Sandbox
In contrast to the above, with this method, the transferred files are persistent – which means the files will be always available in the sandbox. For this method, you have to map a Shared folder with Windows Sandbox. Once done, you can then transfer the target file or folder to the shared folder, and you can access it from the Windows Sandbox.
To map a shared folder to Windows Sandbox on Windows 11/10, you simply need to create a Windows Sandbox configuration file – here’s how:
- On the host OS, press Windows key + E to open File Explorer.
- In File Explorer, in the root directory, create a new folder and name the folder WS Config Files.
- Next, double-click the new folder to open it.
- In the open folder, right-click and select New > Text Document and name the file, say, MappedFolders.wsb (or any preferred name but must have the .wsb extension).
- Next, right-click the WSB file and select Open with > Notepad or any Text Editor.
- Now, copy and paste the code below into the Notepad. Replace the C:\Path\to\Folder placeholder with the actual path of the folder you want to share or map.
<Configuration>
<MappedFolders>
<MappedFolder>
<HostFolder>C:\Path\to\Folder</HostFolder>
<ReadOnly>false</ReadOnly>
</MappedFolder>
</MappedFolders>
</Configuration>
- Finally, save the file and exit Notepad.
Now, double-click on the MappedFolders.wsb file to launch Windows Sandbox. In the sandbox, you will see the shared folder directly on the Desktop because Windows Sandbox mounts shared folders directly on the desktop and not in the Network node in File Explorer navigation pane.
On a final note, if you launch Windows Sandbox directly from the Start menu, you will not see the shared folders. So, to access the shared folders in Windows Sandbox, you have to launch the folder using the configuration file.
You can read more about the Windows Sandbox Config Files here on microsoft.com.
That’s it!
Where does Windows Sandbox store files?
Behind every Hyper-V based VM there is a VHDx file, a virtual disk that is used by the machine. The working folder of an actively running sandbox can be accessed in the following location %PROGRAMDATA%\Microsoft\Windows\Containers.
What can you do with Windows Sandbox?
In a nutshell, Windows Sandbox is a half app, half virtual machine. It lets PC users quickly create a live virtual clean OS imaged from your system’s current state so that you can test programs or files in a secure environment that’s isolated from your main system. When you close the sandbox, it destroys that state.
Can you get a virus in Windows Sandbox?
But while malware executed within the sandbox cannot directly access the drives of the primary operating system, it can still communicate with other devices on your network. Because of this, Windows Sandbox is unable to provide network-level isolation. Sandbox can prevent viruses/malware from escaping into your real computer. However, common sense dictates that it is preferable to prevent the virus from running in the first place.
Is Windows Sandbox completely isolated?
While fully isolated in terms of code execution, Windows Sandbox doesn’t provide network isolation. Malware can access and attack other devices accessible by the host, even if behind a Network Access Control (NAC). So, it’s imperative to point out that Windows Sandbox is not completely isolated. Windows Sandbox runs as a virtual machine and its contents are destroyed when you shut it down.
Obinna has completed B.Tech in Information & Communication Technology. He has worked as a System Support Engineer, primarily on User Endpoint Administration, as well as a Technical Analyst, primarily on Server/System Administration. He also has experience as a Network and Communications Officer. He has been a Windows Insider MVP (2020) and currently owns and runs a Computer Clinic.
Need to copy, move, or get files into Windows Sandbox? It is pretty straightforward. Here is how to transfer files to the Windows sandbox.
If there is one feature that I’m glad Microsoft added to Windows 10 and 11 is the Windows Sandbox. As the name implies, Windows Sandbox is a simple yet effective way to test Windows settings, configurations, and trusted or untrusted applications.
To get the most out of the sandbox, you should be able to transfer files to Windows Sandbox. For example, you might have to transfer an application’s exe file from the host machine to Windows Sandbox to test that application. Copying or transferring a file helps you install and execute the application in the sandbox.
However, to make Windows Sandbox as secure as possible, there are limited ways to transfer files to and from Windows Sandbox. The good thing is, if you want to move files to Windows Sandbox or get files into Windows Sandbox, it is pretty easy to do.
Let me show you how to transfer files to Windows Sandbox in simple and easy steps.
Table of contents:
- Copy and paste to transfer files
- Use a Windows Sandbox configuration file
- What is Windows Sandbox?
Note: The steps below will work in Windows 10 and 11.
Note: I assume you have already enabled Windows Sandbox. If not, enable Windows Sandbox and then follow the below steps.
Copy and paste to transfer files to Windows Sandbox
One of the easiest ways to transfer files to Windows Sandbox is copying and pasting. i.e., copy the file or folder you want to transfer and paste it into the sandbox. It is that simple. Of course, you can copy and paste multiple files at a time.
Here are the exact steps if you need more guidance.
First, open the Windows Sandbox. You can search for it in the Start menu.
After opening the Windows Sandbox, copy the file or folder you want to transfer with the “Ctrl + C” keyboard shortcut.
Next, go to the Windows Sandbox desktop and paste it with the “Ctrl + V” keyboard shortcut. Depending on the file or folder size, it can take a couple of seconds to transfer. Once done, you will see it on the sandbox desktop.
Remember that the transferred file or folder is deleted from the sandbox environment when you close the Windows Sandbox. This is because Windows will revert all changes made to the sandbox environment when you close it. This includes deleting files or folders you created or transferred. If you want the transferred files to be always available, follow the second method.
Note: You would think drag and drop would work in Windows Sandbox. However, as of writing this, Windows Sandbox doesn’t support drag and drop.
Use a Windows Sandbox configuration file to transfer files
The disadvantage of the first method, though easy, is that the transferred files are not persistent. The transferred files are deleted as soon as you close or shut down the Windows Sandbox.
If you want the files to be always available, you have to map a shared folder with Windows Sandbox. Once done, transfer the target file or folder to the shared folder, and you can access it from the Windows Sandbox.
The good thing is, it is pretty easy to do.
You need to create a Windows Sandbox configuration file called “MappedFolders.wsb” using Notepad, paste a configuration script, type the shared folder path in the added script, save it, and launch Windows Sandbox using that script. All this will show the mapped folder on the Windows Sandbox desktop.
You can access all the files and folders as and when needed, provided that you’ve first transferred them to the shared folder.
I’ve already written a detailed guide on mapping a shared folder to Windows Sandbox. Follow the linked guide, and you are good to go. You should be able to transfer files to Windows Sandbox in Windows 10 and 11 via the mapped shared folder.
What is Windows Sandbox?
If you don’t know, Windows Sandbox is a virtual OS environment within Windows 10 and 11. Windows Sandbox acts as a full-fledged OS with some minor limitations. However, it is still pretty lightweight compared to complete virtual machines created using VMware or VirtualBox. The good thing is that anything you do in Windows Sandbox stays inside the sandbox. That means you can safely test software and Windows settings without worrying about how it affects your main computer.
—
That is all. It is simple to copy, move, or transfer files to Windows Sandbox in Windows 10 and 11.
I hope this simple and easy Windows how-to guide helped you.
If you are stuck or need some help, comment below, and I will try to help as much as possible.
Нужно копировать, перемещать или помещать файлы в песочницу Windows? Это довольно просто. Вот как перенести файлы в песочницу Windows.
Если есть одна функция, которую Microsoft добавила в Windows 10 и 11, я рад, что это Windows Sandbox. Как следует из названия, Windows Sandbox — это простой, но эффективный способ проверить параметры, конфигурации и доверенные или ненадежные приложения Windows.
Чтобы получить максимальную отдачу от песочницы, вы должны иметь возможность передавать файлы в песочницу Windows. Например, вам может потребоваться перенести исполняемый файл приложения с хост-компьютера в песочницу Windows, чтобы протестировать это приложение. Копирование или передача файла помогает установить и запустить приложение в песочнице.
Однако, чтобы сделать Windows Sandbox максимально безопасной, существует ограниченное количество способов передачи файлов в Windows Sandbox и из нее. Хорошо, что если вы хотите переместить файлы в Песочницу Windows или получить файлы в Песочницу Windows, это довольно легко сделать.
Позвольте мне показать вам, как легко и просто перенести файлы в Windows Sandbox.
Оглавление:
Примечание. Следующие шаги будут работать в Windows 10 и 11.
Примечание. Я предполагаю, что вы уже включили песочницу Windows. Если нет, включите песочницу Windows, а затем выполните следующие шаги.
Один из самых простых способов переноса файлов в Windows Sandbox — копирование и вставка. т. е. скопируйте файл или папку, которые вы хотите передать, и вставьте их в песочницу. Это так просто. Конечно, вы можете копировать и вставлять несколько файлов одновременно.
Вот точные шаги, если вам нужно больше рекомендаций.
Сначала откройте песочницу Windows. Вы можете найти его в меню «Пуск».
После открытия «Песочницы» Windows скопируйте файл или папку, которые вы хотите перенести, с помощью сочетания клавиш «Ctrl + C».
Затем перейдите на рабочий стол Windows Sandbox и вставьте его с помощью сочетания клавиш «Ctrl + V». В зависимости от размера файла или папки передача может занять несколько секунд. После этого вы увидите его на рабочем столе песочницы.
Помните, что переданный файл или папка удаляются из среды песочницы, когда вы закрываете песочницу Windows. Это связано с тем, что Windows отменит все изменения, внесенные в среду песочницы, когда вы ее закроете. Это включает в себя удаление файлов или папок, которые вы создали или передали. Если вы хотите, чтобы переданные файлы всегда были доступны, следуйте второму способу.
Примечание. Можно подумать, что перетаскивание будет работать в песочнице Windows. Однако на момент написания этой статьи Windows Sandbox не поддерживает перетаскивание.
Недостаток первого метода, хотя и простого, заключается в том, что передаваемые файлы не являются постоянными. Передаваемые файлы удаляются, как только вы закрываете или завершаете работу Windows Sandbox.
Если вы хотите, чтобы файлы всегда были доступны, вам необходимо сопоставить общую папку с песочницей Windows. После этого перенесите целевой файл или папку в общую папку, и вы сможете получить к ней доступ из песочницы Windows.
Хорошо, что это довольно легко сделать.
Вам необходимо создать файл конфигурации Windows Sandbox с именем «MappedFolders.wsb» с помощью Блокнота, вставить сценарий конфигурации, ввести путь к общей папке в добавленном сценарии, сохранить его и запустить Windows Sandbox с помощью этого сценария. Все это покажет сопоставленную папку на рабочем столе Windows Sandbox.
Вы можете получить доступ ко всем файлам и папкам по мере необходимости, при условии, что вы предварительно перенесли их в общую папку.
Я уже написал подробное руководство по сопоставлению общей папки с песочницей Windows. Следуйте связанному руководству, и все готово. Вы должны иметь возможность передавать файлы в Windows Sandbox в Windows 10 и 11 через сопоставленную общую папку.
Что такое песочница Windows?
Если вы не знаете, Windows Sandbox — это среда виртуальной ОС в Windows 10 и 11. Windows Sandbox действует как полноценная ОС с некоторыми незначительными ограничениями. Тем не менее, он все еще довольно легкий по сравнению с полными виртуальными машинами, созданными с помощью VMware или VirtualBox. Хорошо то, что все, что вы делаете в песочнице Windows, остается внутри песочницы. Это означает, что вы можете безопасно тестировать программное обеспечение и настройки Windows, не беспокоясь о том, как это повлияет на ваш основной компьютер.
—
Это все. Копировать, перемещать или передавать файлы в песочницу Windows в Windows 10 и 11 очень просто.
Я надеюсь, что это простое и понятное руководство по Windows помогло вам.
Если вы застряли или вам нужна помощь, оставьте комментарий ниже, и я постараюсь помочь как можно больше.
После последнего майского обновления (версия 1903) в Windows 10 появилась новая интересная и полезная функция — Песочница Windows 10 (Windows Sandbox). Она позволяет запускать подозрительные и ненадежные программы в облегченной изолированной среде, работающей как виртуальная машина Hyper-V или VirtualBox. Но в песочнице все гораздо проще и понятнее, что немаловажно для начинающих пользователей.
Что такое песочница в Windows 10
Если вы хотите попробовать какую-то программу или игру, но боитесь, что после этого на компьютере что-то пойдет не так: вместе с программой на компьютер проникнут вирусы или вам она не понравится и потом придется её удалять. И неизвестно, как еще пройдет это удаление, тогда лучше всего воспользоваться песочницей и протестировать приложение в ней.
Песочница работает очень просто. Как только вы её включаете, она запускает новую чистую установку Windows 10, т.е. запускает виртуальную машину с новой операционной системой без доступа к вашим файлам в основной системе.
Можно протестировать любую программу, игру или файл. Как и в виртуальной машине в песочнице имеется буфер обмена, при помощи которого вы можете «передавать» файлы из основной системы в песочницу и наоборот.
Если что-то необходимо сохранить, созданное во время работы в песочнице, то можно перенести файлы в общие папки по сети. Но лучше этого не делать, т.к. если программа или игра заражена вирусами, то при передаче файлов они проникнут в основную систему.
После отключения песочницы всё автоматически удаляется. После чего вы можете работать на компьютере точно так-же, как работали до этого.
Системные требования Windows Sandbox
Прежде чем пытаться включить функцию «Песочница», необходимо убедиться, что ваше устройство подходит для её использования.
Минимальные системные требования для включения песочницы:
- Windows 10 Профессиональная или Корпоративная, версии 1903 (при желании, включить песочницу можно и в Windows 10 Домашняя);
- Аппаратная виртуализация;
- Разрядность ОС х64;
- Процессор — минимум 2 ядра;
- Память – минимум 4 ГБ;
- Жесткий диск – минимум 1 ГБ (лучше SSD).
Как проверить, поддерживает ли Ваш компьютер виртуализацию Hyper-V
- Кликните по кнопке «Пуск» правой кнопкой мыши.
- Выберите в открывшемся контекстном меню консоль PowerShell или командную строку от имени администратора,
- введите в ней команду systeminfo и нажмите на клавиатуре кнопку Enter.
- После этого обратите внимание на пункт «Требования Hyper-V».
Если все четыре требования имеют значение «да», можете смело включать гипервизор и создавать виртуальные машины. Если один из этих пунктов имеет значение «нет», то необходимо проверить настройки BIOS или UEFI и включить эту функцию, при условии, что процессор её поддерживает. Включается в БИОС/UEFI. Выглядит как пункт для включения Intel Virtualization Technology (VT-x), или AMD-v на процессорах AMD. Если ничего не помогло, то посетить сайт производителя вашего устройства.
Включаем песочницу Windows 10
Чтобы включить песочницу в виндовс 10 необходимо:
- Открыть «Панель управления» и кликнуть по ссылке «Программы»,
- Далее перейти по ссылке «Включение или отключение компонентов Windows»,
- Установите флажок напротив записи «Песочница Windows» и нажмите кнопку «ОК».
- Вас попросят перезагрузить компьютер. Нажмите кнопку «Перезагрузить сейчас».
Как запустить песочницу Windows Sandbox на Windows 10
- Откройте меню «Пуск».
- Найдите пункт «Windows Sandbox», кликните по нему правой кнопкой мыши и выберите параметр «Запуск от имени администратора».
- Выберите приложение, которое хотите запустить в песочнице. Кликните правой кнопкой мыши по его файлу установщика и выберите в выпадающем контекстном меню пункт «Копировать».
- Кликните правой кнопкой мыши по рабочему столу песочницы и выберите пункт «Вставить».
- Теперь можете запустить установщик программы так же, как в вы это делаете в основной операционной системе.
- Для использования песочницы в полноэкранном режиме (или выхода из него) можно использовать клавиши Ctrl + Alt + Break (или Пауза), или нажать вверху окна песочницы кнопку «Свернуть/Развернуть».
- После завершения тестирования приложения нажмите вверху справа окна песочницы кнопку Х и нажмите кнопку «ОК», чтобы закрыть песочницу.
После этого программа и все её файлы будут удалены. Все эти действия не повлияют ни на вашу систему, ни на ваши файлы. Все останется в целости и сохранности. Удалена будет только программа, которую вы запускали в песочнице. В этом вся прелесть этой функции.
Видео: Что такое песочница в Windows 10
Удачи Вам!
В последнем релизе Windows 10 1903 появился новый функционал “песочницы”- Windows Sandbox. Встроенная песочница Windows основана на возможностях компонента Hyper-V и концепции контейнеров, и позволяет создать временную изолированную среду для запуска недоверенных приложений или потенциально-опасного ПО или даже вирусов. При этом все ПО, которое вы запускаете внутри этой песочницы не может затронуть хостовую операционную систему. При закрытии Sandbox все внесенные изменения не сохраняются и при следующем запуске песочница снова запускается в чистом виде. В этой статье мы рассмотрим, как установить, настроить и использовать Sandbox в Windows 10.
Содержание:
- Как включить Sandbox в Windows 10?
- Использование песочницы Windows
- Конфигурационные файлы Windows Sandbox
- Песочница в Windows 10 Home
Windows Sandbox представляет собой небольшую виртуальную машину (размер образа около 100 Мб). Полноценный функционал Windows 10 в этой песочнице достигается благодаря использованию существующих файлов ядра ОС с хостовой Windows 10 (изнутри sandbox нельзя изменить или удалить эти файлы). Благодаря этому виртуальная машина с песочницей потребляет гораздо меньше системных ресурсов, загружается и работает быстро
В отличии от классической виртуальной машины при использовании Sandbox вам не нужно держать отдельную ВМ, устанавливать на нее ОС и обновления. За счет того, что в контейнере используются бинарные и DLL файлы вашей копии Windows (как с диска, так и загруженные в памяти), размер такой ВМ минимальный (вам не нужно хранить виртуальный диск с ВМ целиком)
Для использования Windows Sandbox ваш компьютер должен удовлетворять следующим требованиям:
- 64-битная архитектура процессора (минимум двухъядерный процессор);
- Windows 10 1903 (build 18362 или более новый) в редакции Pro или Enterprise;
- Включена поддержка виртуализации в BIOS / UEFI (поддерживается практически всеми современными устройствами, в том числе ноутбуками и планшетами);
- Не менее 4 Гб памяти и 1 Гб свободного места на диске (желательно SSD).
Как включить Sandbox в Windows 10?
По умолчанию функция Sandbox в Windows 10 отключена. Чтобы включить ее, отройте Панель Управления -> Programs and Features -> Turn Windows features on or off (или выполните команду
optionalfeatures.exe
) и в списке возможностей Windows 10 выберите Windows Sandbox.
Если ваша Windows 10 сама запущена внутри виртуальной машины Hyper-V не ней нужно включить поддержку вложенной виртуализации (Nested Virtualization) командой PowerShell:
Set-VMProcessor -VMName win10vm_name -ExposeVirtualizationExtensions $true
В VMWare vSphere для ВМ нужно включить опцию Expose hardware assisted virtualization to the guest OS (см. статью).
Вы также можете включить Sandbox из PowerShell:
Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" –Online
После установки компонента нужно перезагрузить компьютер.
Использование песочницы Windows
После перезагрузки в стартовом меню найдите и запустите Windows Sandbox или запустите его командой
WindowsSandbox.exe
.
В результате откроется окно песочницы и вы увидите рабочий стол вашего чистого образом Windows 10 с настройками по-умолчанию. При этом в “песочной” ОС уже интегрированы последние обновления безопасности и драйвера, и вам не нужно обновлять гостевую систему отдельно, как в случае с традиционной виртуальной машиной.
Теперь вы можете cкопировать любой исполняемый файл с вашего компьютера в песочницу с помощью операций copy&paste или drag&drop, установить приложение, запустить и исследовать его в безопасном окружении. После окончания экспериментов просто закройте приложение Windows Sandbox и все содержимое песочницы будет удалено.
При закрытии окна Sandbox появляется предупреждение:
Are you sure you want to close Windows Sandbox? Once Windows Sandbox is closed all of its content will be discarded and permanently lost.
Конфигурационные файлы Windows Sandbox
По умолчанию Windows Sandbox использует для чистый образ Windows 10. Однако вы можете самостоятельно настроить среду Windows Sandbox с помощью конфигурационных файлов. Например, для песочницы вы можете включить или отключить виртуальный графический адаптер, разрешить (отключить) доступ к сети, подмонтировать каталог с хостовой ОС или выполнить скрипт при загрузке. Данные конфигурационные файлы применяются при загрузке ОС в песочнице.
Конфигурационный файл Windows Sandbox представляет собой XML документ с расширением .wsb. На данный момент в конфигурационном файле Sandbox можно настроить следующие параметры:
- Виртуальную видеокарты (vGPU)
- Доступ к сети (Networking)
- Общие папки (Shared folders)
- Скрипты (Startup script)
Рассмотрим небольшой пример конфигурационного файла Windows Sandbox (комментарии даны прямо по тексту XML файла):
<configuration>
<vgpu>Default</vgpu>
<networking>Enabled</networking>
<!— Включить сетевой доступ для песочницы. При этом на хосте Hyper-V создается виртуальный коммутатор, а контейнер песочницы подключается к нему через виртуальную сетевую карту—>
<mappedfolders>
<mappedfolder>
<hostfolder>C:\Users\root\Downloads</hostfolder>
<readonly>true</readonly>
<!— Смонтировать с хоста Windows 10 на чтение каталог C:\Users\root\Downloads. Данный каталог в песочнице будет доступен по пути C:\users\WDAGUtilityAccount\Desktop\Downloads —>
</mappedfolder>
</mappedfolders>
<logoncommand>
<command />C:\users\WDAGUtilityAccount\Desktop\Downloads\SandboxScript\preconfigure.bat
<!— Запустить следующий скрипт или приложение после загрузки среды Sandbox. —>
</logoncommand>
</configuration>
При включении доступа к сети из Windows Sandbox вы должны понимать, что таким образом вы можете предоставить доступ недоверенному приложению к вашей локальной сети.
С помощью конфигурационного файла вы можете смонтировать с хоста каталог с различными утилитами для отладки и тестирования приложений (ProcMon, ProcessExplorer и т.д.)
Чтобы запустить Windows Sandbox с помощью вашего конфигурационного файла достаточно дважды щелкнуть по файлу .wsb.
Вы можете запустить только одну копию Sandbox. При попытке открыть вторую песочницу появится сообщение:
Only one running instance of Windows Sandbox is allowed.
Песочница в Windows 10 Home
Windows Sandbox официально не поддерживается в домашней редакции Windows 10 Home, однако вы можете включить этот компонент с помощью следующего скрипта:
dir /b %SystemRoot%\servicing\Packages\*Containers*.mum >sandbox_cont.txt
for /f %%i in ('findstr /i . sandbox_cont.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del sandbox_cont.txt
Dism /online /enable-feature /featurename:Containers-DisposableClientVM /LimitAccess /ALL
pause
Чтобы удалить песочницу, используйте следующую PowerShell команду:
Disable-WindowsOptionalFeature –FeatureName "Containers-DisposableClientVM" -Online
Итак, Sandbox в Windows 10 предоставляет довольно интересные возможности для тестирования, проверки и анализа работы недоверенных или опасных исполняемых файлов. Любые изменения в песочнице не сохраняются в ней после ее закрытия. За счет использования компонентов текущего образа Windows 10 песочница загружается довольно быстро и не потребляет ресурсы хоста, как полноценная виртуальная машина.