[英]Powershell command to kill multiple processes at once using the processes PID?
我特别想创建一个能够终止这些进程的 if 语句。 前任:
if(task is in tasklist) {
kill each iteration of this task within the list
}
$list = 1, 2, 3
foreach($_pid in $list){
Stop-Process -Id $_pid
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.