P
pit_the_kid
Hello,
I want to get the serviceaccount of an already installed windows
service. With the class Service.Controller (under
System.ServiceProcess) I can read a couple of useful properties of
existing services, but there is no way to read the account under which
the service runs.
On the other hand there is the class ServiceProcessInstaller which
gives for the Installation of Services the possibilty to specifiy
servicetype and in case of user the serviceaccount.
Can I use this class to read the serviceaccounts/-types of existing
services. If yes, how do I do this? If this class is not suitable for
my intention, which alternative classes can I use?
Thx in advance
Pit
I want to get the serviceaccount of an already installed windows
service. With the class Service.Controller (under
System.ServiceProcess) I can read a couple of useful properties of
existing services, but there is no way to read the account under which
the service runs.
On the other hand there is the class ServiceProcessInstaller which
gives for the Installation of Services the possibilty to specifiy
servicetype and in case of user the serviceaccount.
Can I use this class to read the serviceaccounts/-types of existing
services. If yes, how do I do this? If this class is not suitable for
my intention, which alternative classes can I use?
Thx in advance
Pit