win-scripts/gaming/close-unneeded-software.ps1

32 lines
632 B
PowerShell
Raw Normal View History

2022-09-11 17:22:45 +02:00
# get lively process
$lively = Get-Process Lively -ErrorAction SilentlyContinue
if ($lively) {
$lively | Stop-Process -Force
Write-Host "Stopped Lively"
} else {
Write-Host "Lively already stopped"
}
$keepassxc = Get-Process KeePassXC -ErrorAction SilentlyContinue
if ($keepassxc) {
$keepassxc | Stop-Process -Force
Write-Host "Stopped KeePassXC"
} else {
Write-Host "KeePassXC already stopped"
}
$ferdium = Get-Process Ferdium -ErrorAction SilentlyContinue
if ($ferdium) {
$ferdium | Stop-Process -Force
Write-Host "Stopped Ferdium"
} else {
Write-Host "Ferdium already stopped"
}
Pause