How to enable Windows Sandbox on Windows 11, 10

How to enable Windows Sandbox on Windows 11, 10
  • To enable Windows Sandbox, open “Windows Features,” check “Windows Sandbox,” click “OK,” and restart the computer.
  • You can also enable the feature with commands using Command Prompt and PowerShell.

On Windows 11 (and 10), “Windows Sandbox” is a minimal installation of Windows isolated from the main installation that allows you to run untrusted applications without exposing your device.

Sandbox is available on the Pro and Enterprise editions of Windows, and it uses Microsoft’s Hyper-V technology to create a disposable lightweight virtual machine on-demand to run a separate kernel that separates the Windows Sandbox session from the host.

In other words, this is a small installation of Windows 11 (or Windows 10) of just around 100MB, enough to run the desktop environment and test applications. You can even copy and paste files from the host to the isolated environment. Once you finish testing the application, closing the feature will delete the Sandbox environment, which means that every time you start the feature, you will start with a fresh install of Windows 11.

Windows Sandbox requires virtualization in the Unified Extensible Firmware Interface (UEFI) on Windows 11 or 10 or Basic Input/Output System (BIOS) on Windows 10 before you can use the feature. You can use these instructions to enable hardware virtualization in the motherboard before proceeding with the steps below.

In this guide, I will teach you the steps to enable Windows Sandbox on Windows.

Enable Windows Sandbox from Windows Features

To enable “Windows Sandbox” to run untrusted apps on Windows 11 (or 10), use these steps:

  1. Open Start on Windows.

  2. Search for Turn Windows features on or off and click the top result to open the experience.

  3. Check the Windows Sandbox option.

    Windows 11 Sandbox aktivieren

  4. Click the OK button.

  5. Click the Restart now button.

After you complete the steps, you can start the app from the Start menu.

If you want to disable the feature, you can use the same instructions, but in step 3, clear the option.

Enable Windows Sandbox from PowerShell

To enable Windows Sandbox with PowerShell commands, use these steps:

  1. Open Start.

  2. Search for PowerShell, right-click the top result, and select the Run administrator option.

  3. Type the following command to enable Sandbox users and press Enter:

    Enable-WindowsOptionalFeature -Online -FeatureName "Containers-DisposableClientVM"-All
    PowerShell aktiviert Sandbox

  4. Type “Y” and press enter to restart the computer

Once you complete the steps, the feature will be enabled and ready from the Start menu.

Wenn Sie die Änderung rückgängig machen möchten, können Sie dieselben Anweisungen verwenden, aber in Schritt 3Disable-WindowsOptionalFeature -Online -FeatureName "Containers-DisposableClientVM" den Befehl ausführen .

Aktivieren Sie die Windows-Sandbox über die Eingabeaufforderung

Um Windows Sandbox mit Eingabeaufforderungsbefehlen zu aktivieren, führen Sie diese Schritte aus:

  1. Öffnen Sie „Start“ .

  2. Suchen Sie nach „Eingabeaufforderung“ , klicken Sie mit der rechten Maustaste auf das oberste Ergebnis und wählen Sie die Option „Administrator ausführen“ .

  3. Geben Sie den folgenden Befehl ein, um Windows Sandbox zu aktivieren, und drücken Sie die Eingabetaste :

    Dism /online /Enable-Feature /FeatureName:"Containers-DisposableClientVM"-All
    Eingabeaufforderung aktiviert Sandbox

  4. Geben Sie „Y“ ein und drücken Sie die Eingabetaste, um den Computer neu zu starten

Nachdem Sie die Schritte abgeschlossen haben, können Sie mit der Verwendung von Windows Sandbox beginnen, um Apps zu testen und nicht vertrauenswürdige Websites zu besuchen, ohne die Hauptinstallation zu beeinträchtigen.

Wenn Sie die Änderung rückgängig machen möchten, können Sie dieselben Anweisungen verwenden, aber in Schritt 3Dism /online /Disable-Feature /FeatureName:"Containers-DisposableClientVM" den Befehl ausführen .

Öffnen Sie zunächst Windows Sandbox über das Startmenü. Anschließend wird Ihnen eine normale Windows-Desktopumgebung angezeigt, in der Sie nicht vertrauenswürdige Anwendungen installieren und ausführen können, ohne die aktuelle Installation zu beeinträchtigen. Wenn Sie die App schließen, löschen Sie die gesamte virtuelle Maschine und alles, was Sie installiert haben.

Update 19. Juni 2024: Dieser Leitfaden wurde aktualisiert, um Genauigkeit zu gewährleisten und Änderungen am Prozess widerzuspiegeln.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert