Skip to content

Commit

Permalink
Update Use-DebloatSoftware.ps1 (#138)
Browse files Browse the repository at this point in the history
Corrects the returned path of downloaded adwcleaner
  • Loading branch information
747DB66FBC authored and LeDragoX committed Sep 8, 2024
1 parent 4da1d28 commit 2481d93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/Use-DebloatSoftware.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 2481d93

Please sign in to comment.