SHARE
TWEET

killUserProcess.bat

Combreal Jun 3rd, 2020 (edited) 1,050 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rem kill all instances of Mattermost.exe for user smainguy
  2. @echo off
  3. for /F "tokens=2 USEBACKQ" %%F IN (`tasklist /fi "USERNAME eq smainguy" ^| find "Mattermost.exe"`) DO (
  4.     taskkill /PID %%F /F >nul: 2>nul:
  5. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top