Hi,
I have a problem with powershell which sometimes fails to kill a task or thread.
The error message is as follows:
"The process “EXCEL.EXE” with PID 37108 could not be terminated.
When I test on the same command:
- If Excel is not running at all, there’s no issue
- If Excel is running, it will be terminated without problem
- If I put it in a loop. For instance open and close Excel 100 times. 1 or 2 times, there’s a error thrown.
Absolutely no idea what is causing it.
Any help?
Thanks a lot!