Created
November 11, 2014 18:26
-
-
Save jquintus/b9ad19e94b3842b0d15e to your computer and use it in GitHub Desktop.
Disable Hyper-V
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This script makes a copy of the current boot record and disables Hyper-V | |
| # The next time the computer is restarted you can elect to run without Hyper-V | |
| $output = invoke-expression 'bcdedit /copy "{current}" /d "Hyper-V Disabled"' | |
| $output -match '{.*}' | |
| $guid = $matches[0] | |
| $hyperVCommand = 'bcdedit /set "' + $guid + '" hypervisorlaunchtype off' | |
| invoke-expression $hyperVCommand |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment