Skip to content

Instantly share code, notes, and snippets.

@supermarsx
Created April 28, 2024 19:34
Show Gist options
  • Save supermarsx/21c561e01253c560d7a610c8113f5c7e to your computer and use it in GitHub Desktop.
Save supermarsx/21c561e01253c560d7a610c8113f5c7e to your computer and use it in GitHub Desktop.
DISM Hyper-V, Containers and Sandbox related feature toggles
Dism /online /Disable-Feature /FeatureName:Containers-DisposableClientVM /Remove /NoRestart
Dism /online /Disable-Feature /FeatureName:Containers /Remove /NoRestart
Dism /online /Disable-Feature /FeatureName:Microsoft-Hyper-V-All /Remove /NoRestart
Dism /online /Disable-Feature /FeatureName:Microsoft-Hyper-V-Tools-All /Remove /NoRestart
Dism /online /Disable-Feature /FeatureName:VirtualMachinePlatform /Remove /NoRestart
Dism /online /Disable-Feature /FeatureName:HypervisorPlatform /Remove /NoRestart
Dism /online /Enable-Feature /FeatureName:Containers-DisposableClientVM /NoRestart
Dism /online /Enable-Feature /FeatureName:Containers /NoRestart
Dism /online /Enable-Feature /FeatureName:Microsoft-Hyper-V-All /NoRestart
Dism /online /Enable-Feature /FeatureName:Microsoft-Hyper-V-Tools-All /NoRestart
Dism /online /Enable-Feature /FeatureName:VirtualMachinePlatform /NoRestart
Dism /online /Enable-Feature /FeatureName:HypervisorPlatform /NoRestart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment