News for hackers. Stuff that matters.
Re:Windows 10 20H2: ChkDsk damages filesystem on SSDs with K... by rbancroft on Sunday December 20, 2020 @03:09PM (#25489104)
you can also do tasklist /svc in a command prompt to get a list of svchosts.exes, pids and the services they are running.
Re:Windows 10 20H2: ChkDsk damages filesystem on SSDs with K... by stinos on Monday December 21, 2020 @04:20AM (#25493342)
Yup. I wondered what the PS equivalent was. So, figure out which WMI class one needs:

    Get-CimClass | ?{$_ -match 'service'}
ok, 'Win32_service' it is, could've guessed that :) Then:

    $svc - Get-WmiObject -Class Win32_service
what can we do with this?

    $svc | Get-Member
Lots of options, get some to see if it's what is needed:

    $svc | Select-Object -Property Name, PathName, ServiceType | Format-Table
Ok, looks like we need PathName. Sum up and list svchost processes including full descption like the one in services.msc:

    $svc | ?{$_.PathName -match 'svchost.exe'} | Select-Object -Property Name, PathName, Description | Format-Table