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 Nov 22, 2023
1 parent f32c3d1 commit b7b72c7
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 b7b72c7

Please sign in to comment.