-
This commit is contained in:
parent
e1b150f5d4
commit
d0bc390436
1 changed files with 4 additions and 4 deletions
|
|
@ -46,17 +46,17 @@ $BleachBitCleaners = @(
|
||||||
"zoom.cache", "zoom.logs"
|
"zoom.cache", "zoom.logs"
|
||||||
)
|
)
|
||||||
|
|
||||||
Write-Log "Stopping Edge processes..."
|
Write-Host "Stopping Edge processes..."
|
||||||
try {
|
try {
|
||||||
$EdgeProcesses = Get-Process -Name "*Edge*" -ErrorAction SilentlyContinue
|
$EdgeProcesses = Get-Process -Name "*Edge*" -ErrorAction SilentlyContinue
|
||||||
if ($EdgeProcesses) {
|
if ($EdgeProcesses) {
|
||||||
$EdgeProcesses | Stop-Process -Force -ErrorAction Stop
|
$EdgeProcesses | Stop-Process -Force -ErrorAction Stop
|
||||||
Write-Log "Edge processes stopped successfully."
|
Write-Host "Edge processes stopped successfully."
|
||||||
} else {
|
} else {
|
||||||
Write-Log "No Edge processes running."
|
Write-Host "No Edge processes running."
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
Write-Log "Warning: Could not stop Edge processes: $($_.Exception.Message)"
|
Write-Host "Warning: Could not stop Edge processes: $($_.Exception.Message)"
|
||||||
}
|
}
|
||||||
|
|
||||||
$DownloadURL = "https://download.bleachbit.org/BleachBit-5.0.2-portable.zip"
|
$DownloadURL = "https://download.bleachbit.org/BleachBit-5.0.2-portable.zip"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue