How to get versions of services/programs running on another system?

Hi,

I want to get the versions of the services/programs running on another system. Does any body have any idea as to how it can be done.I thought of using SNMP.However I am not sure of how to use it

thanks in advance,

nhd



Answer this question

How to get versions of services/programs running on another system?

  • Lionel Johnson

    WMI or System Management objects work here. Works in .Net too.
    Base query is

    "Select * From Win32_Process"


  • preethi_rjs

    The good news is that the opbjects returned by the WMI have a path property that use could used to create your fileinfo object and get the file version of the service running.
  • phoenix11

    Thanks for the reply.

    But i think we need to do some configurations in order to get the WMI working.. right

    I want to know whether we can get that information using SNMP.I know SNMP will return information regarding the process/services running.But does it return the versions of the services


  • zz2

    Nope. WMi components are installed from Add and remove programs. After that, it's all about queries. The query I sent will run without any additional configuration after the WMI is installed. I haven't double checked on the version part though. Are you trying to find the file version of the service running
  • KingKoo

    Yes,I want to get the file version of the services running on another system in the same network.We don't get the version info of the service using WMI,right

    However if I use the below piece of code,I will be getting the version information.

    System.Diagnostics.Process[] proc = System.Diagnostics.Process.GetProcesses(machineName);

    string version= proc[0].MainModule.FileVersionInfo.FileVersion;

    However for remote machines, it doesn't give the version.It will throw exception saying that proc[0].MainModule is not available for remote machines.

    Does anybody have a clue w.r.t this

     

     

     


  • How to get versions of services/programs running on another system?