B
Bram Hoefnagel
Hi,
On the 1.1 framework I couldn't find a solution to get a list of
services from an other PC. Only a list of services on My local PC.
(witch is strange i guess, as you look to the MSDN doc.)
But does someone know a way of getting a list of services on an 'other'
pc in the 2.0 framework.
this code anyhow trhows an exception.
ServiceController[] services;
ServiceController _serviceController = new ServiceController();
_serviceController.MachineName = "pc01";
services = ServiceController.GetServices("pc01");
results in:
Cannot open Service Control Manager on computer 'pc01'. This operation
might require other privileges.
Thnx
Bram
On the 1.1 framework I couldn't find a solution to get a list of
services from an other PC. Only a list of services on My local PC.
(witch is strange i guess, as you look to the MSDN doc.)
But does someone know a way of getting a list of services on an 'other'
pc in the 2.0 framework.
this code anyhow trhows an exception.
ServiceController[] services;
ServiceController _serviceController = new ServiceController();
_serviceController.MachineName = "pc01";
services = ServiceController.GetServices("pc01");
results in:
Cannot open Service Control Manager on computer 'pc01'. This operation
might require other privileges.
Thnx
Bram