From 005f398f635b47ae38e04a0ce0a0568df9706f9f Mon Sep 17 00:00:00 2001 From: "Robert C. Maehl" Date: Thu, 24 Jun 2021 16:50:47 -0400 Subject: [PATCH] Fix Boot having Fail text when Success --- WhyNotWin11.au3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WhyNotWin11.au3 b/WhyNotWin11.au3 index 205709a1..2259d9d3 100644 --- a/WhyNotWin11.au3 +++ b/WhyNotWin11.au3 @@ -23,7 +23,7 @@ RunWait("powershell -Command $env:firmware_type | Out-File -FilePath .\WhyNot.tx $sBOOT = FileRead(".\WhyNot.txt") $sBOOT = StringStripWS($sBOOT, $STR_STRIPALL) -If Not $sBOOT = "Legacy" Then +If Not StringInStr($sBOOT, "Legacy") Then $sBOOTText = "Congrats, this value checks out." Else $sBOOTText = "BOOT should have a 'UEFI' or 'Secure' result. This means that your computer is using modern and secure code to prevent data tampering during boot. You can adjust this in your motherboard settings after ensuring that your disk below is GPT."