I'm trying to get WMI to obtain the status of various services, eg RPC and DCOM Server Process Launcher. These and other services run from the executable 'svchost.exe -k XXXX' where 'XXXX' is the process identifier.
I've set up a WMI Process monitor using 'svchost.exe' as the process name. When tested by itself, this shows an 'up' status. However, when I add '-k RPCSS' (for instance) as a command line filter, I obtain 'test failed with unkown status'.
Is there any way to query these processes? Quite a few seem to use 'svchost' as their executable....