PC Review


Reply
Thread Tools Rate Thread

Configuring windows services through .net

 
 
=?Utf-8?B?UGhpbCBSb3Vl?=
Guest
Posts: n/a
 
      12th Jul 2004
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.
 
Reply With Quote
 
 
 
 
Jeff Johnson [MVP: VB]
Guest
Posts: n/a
 
      12th Jul 2004

"Phil Roue" <(E-Mail Removed)> wrote in message
news:FB072F5A-12CF-4D3D-8F1D-(E-Mail Removed)...

> 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.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with configuring Outlook2007 on Terminal Services Rick Microsoft Outlook Installation 0 29th Feb 2008 12:15 AM
Configuring System Services Security in GPO =?Utf-8?B?Qm9nZGFuIEx1Y2E=?= Microsoft Windows 2000 Active Directory 0 25th Oct 2005 01:40 PM
Configuring Windows Component Services =?Utf-8?B?YmxhY2tzaGVlcDE2NjY=?= Microsoft Windows 2000 1 4th Sep 2005 12:50 AM
Configuring Client Diskette for Terminal Services Alwin D'Souza Microsoft Windows 2000 Terminal Server Clients 1 29th Jan 2004 09:13 PM
configuring outlook express for 2 email services hal Windows XP Networking 4 27th Dec 2003 05:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:56 AM.