使用Powershell杀死已运行超过5分钟的所有Internet Explorer进程 [英] Kill all Internet Explorer processes that have been running for more than 5 minutes using Powershell
本文介绍了使用Powershell杀死已运行超过5分钟的所有Internet Explorer进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想杀死运行时间超过5分钟的所有Internet Explorer进程。这必须是使用Powershell v1.0的一行命令。
I would like to kill all Internet Explorer processes that have been running more than 5 minutes. This has to be a command in one line using Powershell v1.0.
推荐答案
另一种方式:
get-process iexplore | ? { ([DateTime]::Now - $_.StartTime).TotalSeconds -gt 300 } | stop-process
这篇关于使用Powershell杀死已运行超过5分钟的所有Internet Explorer进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文