The emphasis of this question is on the second half.
I know how to extract a list of all the services and how to filter on their state. However, what I am unsure how to do is to extract the user account the service is set to "run as".
I don't have the option of using PowerShell (unfortunately) so I'm looking for a native CMD way. I assumed there would be a way to use the sc query command but all that lists is:
SERVICE_NAME TYPE STATE WIN32_EXIT_CODE SERVICE_EXIT_CODE CHECKPOINT WAIT_HINT
FYI - The OS is WIndows 2003 SP2 and I need this information for all of the services so is a long winded process if I have to do it manually for each of them.