ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Tutorials, Guides, Ebooks, etc.

How to Enable in Windows OS Sandbox without restarting it [Tutorial]

Submitted by skytower at 27-08-2025, 02:37 PM


How to Enable in Windows OS Sandbox without restarting it [Tutorial]
92 Views
skytower's Avatar'
skytower
Offline
#1
Hello guys, I'm going to be sharing a PowerShell script that I wrote that works that will allow you to enable
Windows Sandbox and HyperV without restarting your pc. Before tutorial you can check what is Sandbox

1. Open PowerShell as admin you can also do Windows key +r PowerShell.exe or Windows key +x then select PowerShell

2. Once you are in PowerShell paste the following script into your console you can ctrl +a then ctrl +v this and hit enter then you are done enjoy.

[ Hidden Content! ]
# Check if running as Administrator
if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
    Write-Host "This script needs to be run as Administrator." -ForegroundColor Red
    exit
}

# Enable Windows Sandbox
Write-Host "Enabling Windows Sandbox feature..." -ForegroundColor Green
Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -All -NoRestart -Online

# Enable Hyper-V (required for Windows Sandbox)
Write-Host "Enabling Hyper-V feature..." -ForegroundColor Green
Enable-WindowsOptionalFeature -FeatureName "Microsoft-Hyper-V-All" -All -NoRestart -Online

# Enable Virtual Machine Platform (required for Windows Sandbox)
Write-Host "Enabling Virtual Machine Platform..." -ForegroundColor Green
Enable-WindowsOptionalFeature -FeatureName "VirtualMachinePlatform" -All -NoRestart -Online

Write-Host "Made By ClumsyLulz / SleepTheGod"

Write-Host "Windows Sandbox and related features have been enabled. You may need to manually restart your computer for changes to fully take effect." -ForegroundColor Yellow

 
Likes 💓 +Reps are always appreciated but optional 
WorkingThis leak has been rated as still working 0 times this week. (1 in total)
1
Reply


Messages In This Thread
How to Enable in Windows OS Sandbox without restarting it [Tutorial] - by skytower - 27-08-2025, 02:37 PM


Users browsing this thread: