有谁知道如何通过 PID 获取进程的描述吗?
我尝试使用 powershel 的 Get Process 和任务列表,但它们都没有返回描述。
Id ProcessName Description MainWindowTitle
-- ----------- ----------- ---------------
1272 msedgewebview2 Microsoft Edge WebView2
12580 msedgewebview2 Microsoft Edge WebView2 [AO VIVO] JOGO ABERTO - 04/03/2024 - YouTube
14612 msedgewebview2 Microsoft Edge WebView2
16496 msedgewebview2 Microsoft Edge WebView2
36736 msedgewebview2 Microsoft Edge WebView2
37456 msedgewebview2 Microsoft Edge WebView2
37636 msedgewebview2 Microsoft Edge WebView2
39180 msedgewebview2 Microsoft Edge WebView2
以下 PowerShell 命令将提供您所需的数据:
Get-Process explorer | Format-List Id, ProcessName, Description, MainWindowTitle
如果您想查看可检索的所有属性的列表,请使用:
Get-Process explorer | Format-List *
请参阅 Get-Process 了解更多详细信息。