Finding Services Tied to Processes

When looking at a process list, you will undoubtedly see a number of svchost processes. The overall number of them really depends on the system and what services are running. Each svchost has at least one service running within it. If you are seeking a better understanding of which service is tied to a particular instance of svchost, you can do so in PowerShell with the following:

Get-CimInstance Win32_service | where {$_.Started -eq "True" -and $_.ServiceType -eq "Share Process"} | select-object Name, ProcessId