From 98450f0430eb5eeb22b3d9284c24356051ae1166 Mon Sep 17 00:00:00 2001 From: dilacerated <104276117+dilacerated@users.noreply.github.com> Date: Sun, 21 Jan 2024 11:15:26 -0800 Subject: [PATCH] Update FixWinREKB5034441.ps1 Fails with MBR partitioning schemes due to use of an equal sign instead of -eq. --- FixWinREKB5034441.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FixWinREKB5034441.ps1 b/FixWinREKB5034441.ps1 index 02cb3ec..1be899f 100644 --- a/FixWinREKB5034441.ps1 +++ b/FixWinREKB5034441.ps1 @@ -33,7 +33,7 @@ if($nfo -match ".*Windows RE status:.*Enabled.*"){ #Verify if WINRE is enabled, $Diskpart_Script += "shrink desired=250 minimum=250`n" #Shrink by 250m. $Diskpart_Script += "sel partition $partition`n" #Target recovery partition. $Diskpart_Script += "delete partition override`n" #Remove it. - if ($disk_type = 'GPT'){ #Recreate partition based on partiton table layout. + if ($disk_type -eq 'GPT'){ #Recreate partition based on partiton table layout. $Diskpart_Script += "create partition primary id=de94bba4-06d1-4d40-a16a-bfd50179d6ac`n" $Diskpart_Script += "gpt attributes=0x8000000000000001`n" }else{