我必须定期去交易员处向他们解释为什么他们的一个应用程序不能正常启动/运行。很多时候,他们的桌面上打开了20多个网页。
Get-Process iexplore | sort âDescending cpu
下面的脚本返回在IE中打开的URL列表。
(New-Object -ComObject Shell.Application).Windows() | Where { $_.Name -eq "Internet Explorer" } | % { $_.LocationURL }