kill_extra.ps1 449 B

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