Process ID

Welcome Forums General PowerShell Q&A Process ID

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
1 year, 3 months ago.

  • Author
    Posts
  • #76660

    Participant
    Points: 0
    Rank: Member

    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 ¿?
    .
    .
    .

  • #76734

    Participant
    Points: 154
    Helping Hand
    Rank: Participant

    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

The topic ‘Process ID’ is closed to new replies.