Is there a way to control the serivce control manager?

  • Thread starter Thread starter Mark K Vallevand
  • Start date Start date
M

Mark K Vallevand

Our XPe device has two personalities. There is one suite of software
installed, but a switch on the device sets the personality. We'd like to
start and run a different set of services depending on that switch. In one
mode, we'd run just a simple service that serves TCP/IP socket connections.
In the other mode, we'd run a full set of services: our services, IIS, DTC,
web services, and other stuff.

Is there a way to have a program (or service) run early enough to change the
configuration of services? Can a service stop, start, change dependencies
of other services, and expect that the service control manager will see the
changes and do the right thing?
 
Mark said:
Our XPe device has two personalities. There is one suite of software
installed, but a switch on the device sets the personality. We'd
like to start and run a different set of services depending on that
switch. In one mode, we'd run just a simple service that serves
TCP/IP socket connections. In the other mode, we'd run a full set of
services: our services, IIS, DTC, web services, and other stuff.

Is there a way to have a program (or service) run early enough to
change the configuration of services? Can a service stop, start,
change dependencies of other services, and expect that the service
control manager will see the changes and do the right thing?

You can control services through SC.EXE.
 
Mark,

Not sure what you meant by "a switch on the device sets the personality"? Is it a hardware switch?
Depnding on how and when you switch the personalities, you may want to explorer and just switch ControlSets.
 
ControlSets? I don't grok this. Something like hardware profiles but for
software?

--
Regards.
Mark K Vallevand
KM said:
Mark,

Not sure what you meant by "a switch on the device sets the personality"? Is it a hardware switch?
Depnding on how and when you switch the personalities, you may want to
explorer and just switch ControlSets.
 
Oh, duh, ControlSet in the registry. Ah, is there are tool to manage them?

--
Regards.
Mark K Vallevand
KM said:
Mark,

Not sure what you meant by "a switch on the device sets the personality"? Is it a hardware switch?
Depnding on how and when you switch the personalities, you may want to
explorer and just switch ControlSets.
 
Back
Top