when teams are launched, there are a few of teams.exe process.
i have below line and after click close programs, it will prompt multiple times because there are a few of teams.exe process . how to kill all teams.exe when close programs button is clicked?
It is supposed to work that way. Kill all processes with the specified name. Sometimes it does not due to its mechanism. This function will be reworked in v4.
The problem was that one or more of the Teams.exes is a watchdog process that re-spawns Teams should it die. We tried to have a prompt to ask users to close teams with a PSADT GUI but it was a game of wack-a-mole. We tried using the super aggressive -BlockExecution switch but it cause other issues.
The solution was to simply not ask the user and just kill Teams.