Simple PowerShell to turn Hyper-V on and off on Windows
Sick of losing efficiency with Docker (runs better with Hyper-V) and Virtual Box (oil and water). Made a quick powershell that will enable or disable Hyper-V.
###Requirement Windows with Powershell (Windows 7 or 10 for example)
After execution it will require a restart.
###Examples Example for enabling Hyper-V
Powershell.exe -file C:\yourgitclone\hyper-VSwitch\PowerShellSwitch.ps1 enable -RunAsAdministrator
Example for disabling Hyper-V
Powershell.exe -file C:\yourgitclone\hyper-VSwitch\PowerShellSwitch.ps1 disable -RunAsAdministrator
Don't forget to set the execution policy of powerShell to run its magic.
Set-ExecutionPolicy Unrestricted
MIT