How to Terminate Specific Process only for one user in TaskKill ( Bat file or Powershell )

taskkill /f /fi "USERNAME eq %username%" /im notepad.exe

Powershell

taskkill /f /fi "USERNAME eq $Env:UserName" /im Teams.exe
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...