internet-explorer - 使用 Powershell 终止所有运行时间超过 5 分钟的 Internet Explorer 进程

标签 internet-explorer powershell process kill

我想终止所有运行时间超过 5 分钟的 Internet Explorer 进程。这必须是使用 Powershell v1.0 的一行命令。

最佳答案

另一种方式:

 get-process iexplore | ? { ([DateTime]::Now - $_.StartTime).TotalSeconds -gt 300 } | stop-process

关于internet-explorer - 使用 Powershell 终止所有运行时间超过 5 分钟的 Internet Explorer 进程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11410293/

相关文章:

java - 无法打开调试端口 : java.net.socketexception "Connection refused"- Android Studio

c# - process.start() 参数

IE7中的CSS对齐问题

JavaScript/VBA 自动化 : Changing the onclick attribute

Powershell字符编码

powershell - 用于配置 Azure Web App 持续部署的脚本(网站)

google-chrome - Google Chrome --new-window 开关忽略 --window-position 和 --window-size

javascript - 广告不会在 ie 中居中,除非正文是文本对齐 :center

java - 如何在带有 Java 的 Selenium WebDriver 中使用不同版本的 IE(IE6、7、8、9 和 10)

azure - PowerShell 或 Azure CLI - 显示/创建已设置 PIM 的 Azure 安全组