使用powershell列出没有映像路径名的运行进程

使用powershell列出没有映像路径名的运行进程,powershell,scripting,Powershell,Scripting,我正在尝试使用powershell仅列出服务器上使用powershell没有映像路径名的进程。目前我有(get process).path,但这只返回具有路径名的进程。非常感谢您的帮助。检查是否为空: Get-Process | ?{[string]::IsNullOrWhiteSpace($_.Path)} 非常感谢。我看到[string]::IsNullOrWhiteSpace检查空白值,很高兴知道这一点。

我正在尝试使用powershell仅列出服务器上使用powershell没有映像路径名的进程。目前我有(get process).path,但这只返回具有路径名的进程。非常感谢您的帮助。

检查是否为空:

Get-Process | ?{[string]::IsNullOrWhiteSpace($_.Path)}

非常感谢。我看到[string]::IsNullOrWhiteSpace检查空白值,很高兴知道这一点。