Command line service disable/enable

I’m writing some batch scripts for a BOE XI R2 (SP3) environment (on Windows 2k3) to bring the services down and run various backups before bringing the environment back online.
Stopping/starting the services isn’t a problem but I can’t seem to find a way to disable the processing services and re-enable them to allow running jobs to complete before total shutdown.
Disabling them using “sc config servicename start= disabled” just changes the Windows startup type and doesn’t affect the BOE enabled/disabled setting.
Does anyone know if there’s a way to accomplish this from a batch script?
Many thanks in advance.
Andy.


andyherm :uk: (BOB member since 2008-09-26)

Hi,

Have you tried net start and net stop commands? For instance:

net start "Web Intelligence Job Server"
net stop "Web Intelligence Job Server"

Marek Chladny :slovakia: (BOB member since 2003-11-27)

Hi Mark,
Yes, I’m using the net start/stop commands to shutdown and start the services but I wanted to disable the processing servers before the services get shut down to allow any running jobs to complete properly.
Thanks,
Andy.


andyherm :uk: (BOB member since 2008-09-26)

Did you ever get a response to this ? I’m looking to do the same thing.


michaelscott72 (BOB member since 2009-10-22)

I would like to do this as well. Anyone ever figure out how to disable the services first? I’m sure it could be done thru the SDK, but I’d like to avoid that if possible.


ajunell :us: (BOB member since 2004-05-03)