Get manufacturer / company name for a windows service

Darren Rose 496 Reputation points
2023-12-08T09:04:57.5533333+00:00

Hi

I want to list windows services in my app, but I want to be able to show the company name / manufacturer (like they do in msconfig / system configuration tool) for each service, so I can easily filter out Microsoft services.

However manufacturer doesn't seem to be readily available when retrieving list of services from WMI, registry or ServiceController.

Any ideas on how I can do this please?

User's image

Developer technologies | VB
{count} votes

Accepted answer
  1. RLWA32 49,666 Reputation points
    2023-12-08T10:21:51.64+00:00

    A Windows binary that contains version information will also contain the name of the Manufacturer. This would be the CompanyName property of the FileVersionInfo Class. Service properties returned when enumerating with WMI include a PathName property which gives the fully qualified path for the service executable. You could get the version information for the executable to obtain the CompanyName property. However, for many services the PathName property will begin with a path to the svchost.exe executable followed by parameters. This Microsoft executable is used to host services that are implemented in DLLs. The DLL that is loaded into svchost is identified in the service's registry information in the ServiceDll value of the Parameters subkey.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.