Powerhsell Kill Processes

From Michael's Information Zone
Revision as of 13:54, 2 April 2018 by Michael.mast (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is not truly powershell, but it worked for what I needed at the time.

foreach {$num in 1..99} (taskkill.exe /S computer-$num /IM MpCmdRun.exe)