From b7b72c77b40974344dc6e955d3b3d65f4384f325 Mon Sep 17 00:00:00 2001 From: 747DB66FBC <133031823+747DB66FBC@users.noreply.github.com> Date: Wed, 22 Nov 2023 19:09:51 +0100 Subject: [PATCH] Update Use-DebloatSoftware.ps1 (#138) Corrects the returned path of downloaded adwcleaner --- src/scripts/Use-DebloatSoftware.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/Use-DebloatSoftware.ps1 b/src/scripts/Use-DebloatSoftware.ps1 index ba201059..f99ba5d6 100644 --- a/src/scripts/Use-DebloatSoftware.ps1 +++ b/src/scripts/Use-DebloatSoftware.ps1 @@ -13,9 +13,9 @@ function Use-DebloatSoftware() { If (!$Revert) { $AdwCleanerDl = "https://downloads.malwarebytes.com/file/adwcleaner" - $AdwCleanerOutput = (Request-FileDownload -FileURI $AdwCleanerDl -OutputFile "adwcleaner.exe")[-1] + [String] $AdwCleanerOutput = (Request-FileDownload -FileURI $AdwCleanerDl -OutputFile "adwcleaner.exe") Write-Status -Types "+" -Status "Running MalwareBytes AdwCleaner scanner..." - Start-Process -FilePath "$AdwCleanerOutput" -ArgumentList '/eula', '/clean', '/noreboot' -Wait + Start-Process -FilePath "$AdwCleanerOutput" -ArgumentList "/eula", "/clean", "/noreboot" -Wait Remove-ItemVerified $AdwCleanerOutput -Force }