Manipulating running services

herbert00

New member
Joined
Feb 13, 2008
Messages
1
Programming Experience
Beginner
Hi everybody,

I have searched a lot but I haven't found anything.

Does anybody know, how it is possible to set the StartType of WindowsService from Automatic to Manual?

I know I can do this with ServiceInstaller, but on my machine the services are still existing and I will adjust it programmatically.
(Or is there any possibility to retrieve ServiceInstaller from ServiceController?)


Has anybody an idea?

Thanks in advance.


Regards
 
You can do this with WMI class Win32_Service and its ChangeStartMode method. WMI Code Creator give you the code.
 
Back
Top