Windows Features
Disable Virtualization Features
Disable Hyper-V, WSL, and virtualization-related features if not needed
Benefit
Frees up system resources and improves performance if virtualization is not used
Impact
mediumCommands (1)
Run these commands in an elevated PowerShell window (Run as Administrator). This is exactly what CodeWinOptimizer executes for this tweak.
$ErrorActionPreference='Continue'; $features = @('HypervisorPlatform','VirtualMachinePlatform','Microsoft-Windows-Subsystem-Linux','Client-ProjFS'); foreach ($f in $features) { $w = Get-WindowsOptionalFeature -Online -FeatureName $f -ErrorAction SilentlyContinue; if (-not $w) { Write-Host "[SKIP] $f - not available on this system"; continue } if ($w.State -eq 'Disabled' -or $w.State -eq 'DisabledWithPayloadRemoved') { Write-Host "[OK] $f - already disabled"; continue } try { Disable-WindowsOptionalFeature -Online -FeatureName $f -NoRestart -WarningAction SilentlyContinue -ErrorAction Stop | Out-Null; Write-Host "[OK] Disabled $f" } catch { Write-Host "[ERR] $f - $($_.Exception.Message)" } }Warnings
- Disabling these features will prevent running virtual machines, WSL, and Docker containers.
How to revert this tweak
- •In CodeWinOptimizer: disable the tweak again — the app restores the original values it recorded when it was applied.
- •Manually: reverse the change — re-enable the service, delete the registry value you created, or restore the previous value shown when you ran the commands.
- •With System Restore: press Win + R, run rstrui, and select the restore point that was created before the change.
Frequently asked questions
Do I need to restart?
Some changes apply immediately (many registry and network values). Others — services, GPU scheduling, power settings — only take full effect after signing out or restarting. If the change seems to have no effect, restart before troubleshooting.
Will it survive Windows updates?
Most values persist, but major Windows feature updates can reset policies, services and scheduled tasks. After a big update, come back to this page and re-check the tweak — the app also shows the current state before applying anything.
Is it reversible?
Yes. It is a medium-impact change: keep a restore point around before applying it, and revert it from the app or with System Restore if anything feels off.
Can I apply it manually?
Yes — every command listed above is exactly what the app runs. Open PowerShell as Administrator and run them one at a time, checking the output. For a guided flow with a restore point and one-click revert, use the app.