VB.Net get list of Services on Remote Computer.... How?

R

Roger

I would like to get a list of services on a remote computer. Is this
possible via code in VB.Net?


Thanks,

Rog
 
J

Jay B. Harlow [MVP - Outlook]

Roger,
Window Services or Web Services.

For Windows Services have you tried:

System.ServiceProcess.ServiceController.GetServices?

The GetServices is overloaded to retrieve both services local to the
machine, and services on a remote machine.

Dim services() As ServiceController
services = ServiceController.GetServices("MyServer")

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top