- # Kill the other fs-admin duplicate (PID 7192) too - it's a duplicate
- Stop-Process -Id 7192 -Force
- Write-Output "Killed PID 7192"
- # Also kill the JDT process at 27580 that was running fs-company
- $cmd = (Get-CimInstance Win32_Process -Filter "ProcessId=27580").CommandLine
- if ($cmd -match "fs-company") {
- Stop-Process -Id 27580 -Force
- Write-Output "Killed fs-company PID 27580"
- } else {
- Write-Output "PID 27580 is not fs-company: $cmd"
- }
|