9 lines
267 B
PowerShell
9 lines
267 B
PowerShell
|
|
$ProcessName = "DeltekVision"
|
|
$Process = Get-Process -Name $ProcessName -ErrorAction SilentlyContinue
|
|
If ( $Process ) {
|
|
|
|
Write-Host "Stopping ${ProcessName}"
|
|
Stop-Process -Name $ProcessName
|
|
|
|
} Else { Write-Host "${ProcessName} is not currently running." } |