From e808f054fd4e1551d9844754d821c5ff89c50e37 Mon Sep 17 00:00:00 2001 From: Wayland/Weilan <267128979@qq.com> Date: Tue, 23 Jul 2024 10:20:34 -0400 Subject: [PATCH 1/2] Update win-crowdstrike-fix-bootloop.ps1 fix bug that depending on the disk partition ordering may report that there are no crowdstrike files --- src/windows/win-crowdstrike-fix-bootloop.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windows/win-crowdstrike-fix-bootloop.ps1 b/src/windows/win-crowdstrike-fix-bootloop.ps1 index 21fb0cb..4ab2397 100644 --- a/src/windows/win-crowdstrike-fix-bootloop.ps1 +++ b/src/windows/win-crowdstrike-fix-bootloop.ps1 @@ -1,5 +1,5 @@ . .\src\windows\common\setup\init.ps1 -. .\src\windows\common\helpers\Get-Disk-Partitions.ps1 +. .\src\windows\common\helpers\Get-Disk-Partitions-v2.ps1 $partitionlist = Get-Disk-Partitions $actionTaken = $false @@ -22,4 +22,4 @@ if ($actionTaken) { Log-Warning "No bad crowdstrike files found" } -return $STATUS_SUCCESS \ No newline at end of file +return $STATUS_SUCCESS From bd39b119ce10657037152cd017add6281fbfba0b Mon Sep 17 00:00:00 2001 From: Wayland/Weilan <267128979@qq.com> Date: Tue, 23 Jul 2024 10:22:21 -0400 Subject: [PATCH 2/2] change Get-Disk-Partitions V1 to V2 fix bug that depending on the disk partition ordering may report that there are no crowdstrike files --- src/windows/win-crowdstrike-fix-bootloop-v2.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windows/win-crowdstrike-fix-bootloop-v2.ps1 b/src/windows/win-crowdstrike-fix-bootloop-v2.ps1 index 310a146..33dc9ac 100644 --- a/src/windows/win-crowdstrike-fix-bootloop-v2.ps1 +++ b/src/windows/win-crowdstrike-fix-bootloop-v2.ps1 @@ -1,5 +1,5 @@ . .\src\windows\common\setup\init.ps1 -. .\src\windows\common\helpers\Get-Disk-Partitions.ps1 +. .\src\windows\common\helpers\Get-Disk-Partitions-v2.ps1 $partitionlist = Get-Disk-Partitions $actionTaken = $false @@ -108,4 +108,4 @@ if ($actionTaken) { Log-Warning "No bad crowdstrike files found" } -return $STATUS_SUCCESS \ No newline at end of file +return $STATUS_SUCCESS