Difference between revisions of "Powerhsell Kill Processes"

From Michael's Information Zone
Jump to navigation Jump to search
(Created page with "This is not truly powershell, but it worked for what I needed at the time. <pre>fearch {$num in 1..99} (taskkill.exe /S computer-$num /IM MpCmdRun.exe)</pre>")
 
 
Line 1: Line 1:
 
This is not truly powershell, but it worked for what I needed at the time.
 
This is not truly powershell, but it worked for what I needed at the time.
<pre>fearch {$num in 1..99} (taskkill.exe /S computer-$num /IM MpCmdRun.exe)</pre>
+
<pre>foreach {$num in 1..99} (taskkill.exe /S computer-$num /IM MpCmdRun.exe)</pre>

Latest revision as of 13:54, 2 April 2018

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)