Retrieve a list of services running on a server vb.net -



Retrieve a list of services running on a server vb.net -

i'm looking way details of name , status of services running on service. did utilize next code:

public sub getservices() dim localservices servicecontroller() = servicecontroller.getservices() each service servicecontroller in localservices if not string.isnullorempty(service.displayname) dictservice(service.displayname) = new service(service.displayname, service.servicename, service.status.tostring) end if next end sub

however, since have packaged project wcf service, system.serviceprocess namespace used cannot used:

is there other way can retrieve same details? perchance through wmi?

all message saying that, when trying import namespace, either there nil in it, or wasn't found.

usually case of missing reference, sure you've added reference system.serviceprocess in project?

vb.net windows-services wmi wmi-query

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -