win-scripts/restart-unneeded-software.ps1

29 lines
761 B
PowerShell

$lively = Get-Process Lively -ErrorAction SilentlyContinue
if (!$lively) {
Start-Process -FilePath "C:\Users\Banir\AppData\Local\Programs\Lively Wallpaper\Lively.exe"
Write-Host "Started Lively"
} else {
Write-Host "Lively already started"
}
$keepassxc = Get-Process KeePassXC -ErrorAction SilentlyContinue
if (!$keepassxc) {
Start-Process -FilePath "C:\Program Files\KeePassXC\KeePassXC.exe"
Write-Host "Started KeePassXC"
} else {
Write-Host "KeePassXC already started"
}
$ferdium = Get-Process Ferdium -ErrorAction SilentlyContinue
if (!$ferdium) {
Start-Process -FilePath "C:\Users\Banir\AppData\Local\Programs\ferdium\Ferdium.exe"
Write-Host "Started Ferdium"
} else {
Write-Host "Ferdium already started"
}
Pause