Skip to content

Instantly share code, notes, and snippets.

@affieuk
Created May 25, 2020 16:04
Show Gist options
  • Save affieuk/74bbe90a348a01b82e32d7eb6e02b5b2 to your computer and use it in GitHub Desktop.
Save affieuk/74bbe90a348a01b82e32d7eb6e02b5b2 to your computer and use it in GitHub Desktop.
# PowerShell version of the original I found https://pastebin.com/cX6nupy4
foreach ($Package in (Get-ChildItem C:\WINDOWS\servicing\Packages\*Hyper-V*.mum).FullName) {
dism /online /norestart /add-package:$Package
}
dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment