By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,064 Members | 1,524 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,064 IT Pros & Developers. It's quick & easy.

Configuring windows services through .net

P: n/a
How do you change the configuration of a windows service using .net after the service been installed? In particular, I want to ensure that a given service is set to auto-start.
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Phil Roue" <Ph******@discussions.microsoft.com> wrote in message
news:FB**********************************@microsof t.com...
Thanks, David. The service is SQL Agent, which we are presuming to have
already been installed independently of our own software.

We need to ensure that SQL Agent starts automatically, and want to set this property ourselves programmatically. This is possible using the Windows
SDK, but I was hoping it can be done through .net as well.


WMI should be able to do this. Look at the System.Management namespace.
There are probably some examples somewhere, but I don't have any to give
you.
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.