Author Posts

August 4, 2017 at 6:00 am

Hi all,

I want to know how to find what process ID which corresponded for each service when I run gsv

Status Name DisplayName
—— —- ———–
Stopped AeLookupSvc Application Experience —-> What process ID ¿?
Stopped ALG Application Layer Gateway Service –> What process ID ¿?
.
.
.

August 4, 2017 at 8:40 pm

In this case it's better to use the WMI approach

Get-WmiObject -Class Win32_Service | 
    Select-Object -Property State,Name,@{Name='DisplayName';Expression={Get-Service -Name $_.Name | Select-Object -ExpandProperty DisplayName}},ProcessID