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

32 lines
632 B
PowerShell

# 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