Update SetHypervisorLaunch.ps1

This commit is contained in:
Mathieu Moran
2022-10-13 21:49:39 -04:00
committed by GitHub
parent 391a19686f
commit a99707c2a8
+1 -1
View File
@@ -13,7 +13,7 @@ if ($sysCheck) {
elseif ($a -eq 2) {
$selType = $hvType[1]
}
if ($selType -eq 'auto' -or $selType -eq 'off')
if ($selType -eq $hvType[0] -or $selType -eq $hvType[1])
{
Write-Host "[+] doing 'bcdedit /set hypervisorlaunchtype $selType' command"
bcdedit /set hypervisorlaunchtype $selType