문제

I am trying to use powershell to list only processes on our server that do not have an image path name using powershell. Currently I have (get-process).path but this only returns processes with a path name. Assistance is much appreciated, thanks.

도움이 되었습니까?

해결책

Check for null or blank:

Get-Process | ?{[string]::IsNullOrWhiteSpace($_.Path)}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top