Re: Way to Disable Services in the Configuration?

Tech-Archive recommends: Speed Up your PC by fixing your registry



I don't know of any way to do it.
I have a component that has an FBA Generic Resource that uses cmd.exe to
execute a batch file at phase 11999. The batch file disables a bunch of
services using sc. For example:
sc config Spooler start= disabled

sc stop Spooler


--
Regards.
Mark K Vallevand Mark.Vallevand@xxxxxxxxxx

Beer is living proof that God loves us and wants us to be happy.
- Benjamin Franklin


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.


"Mark" <romanmj@xxxxxxxxxxxxxxx> wrote in message
news:esDvgasRGHA.1160@xxxxxxxxxxxxxxxxxxxxxxx
Hey all -

Is there a way to ensure services are set as stopped and disabled prior to
deploying an image?

Thanks-

Mark


.



Relevant Pages

  • RE: message and batch file
    ... replace the name of the batch file in the sCmd variable with the ... command line that you had in the batch file. ... Try looking at the examples provided by the MS Technet Script Center: ... > file I was running has a one line command to disables the application.) ...
    (microsoft.public.windows.server.scripting)
  • RE: Script
    ... A script like this would be relatively simple to write, ... only a batch file and Administrator rights on the system. ... sc config tlntsvr start= disabled ... could find/get a script that disables windows unnecessary services for ...
    (Security-Basics)
  • Re: Way to Disable Services in the Configuration?
    ... Mark K Vallevand wrote: ... I have a component that has an FBA Generic Resource that uses cmd.exe to execute a batch file at phase 11999. ... The batch file disables a bunch of services using sc. ... sc config Spooler start= disabled ...
    (microsoft.public.windowsxp.embedded)