Answer the question
In order to leave comments, you need to log in
Listing running processes and their associated services in Powershell?
I use this script
Get-WmiObject Win32_Service | Where-Object ProcessId -In (Get-Process svc*).Id | sort-object proc* | Format-Table proc*, stat*, name*
Please help me how to display everything as a HashTable.
I tried this way, but I still can't display the process:
Get-WmiObject Win32_Service | Where-Object ProcessId -In (Get-Process svc*).Id | sort-object proc* | Group proccesId, state, name -AsHashTable -AsString
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question