Tip for System.TerminateProcessByName

I was surprised but relieved to find out that the file extension must be omitted when specifying the process name for this:

System.TerminateProcessByName ProcessName:

Screenshot of a couple of tests:

system

EDIT: It appears there’s at least one exception: ‘soffice.bin’
To kill LibreOffice Calc, I had to use the following, as LibreOffice starts scalc.exe, soffice.exe, and soffice.bin.

system_bin

Regards,
burque505

2 Likes