net start {servicename}
or net stop {servicename}
will control a service from a batch file.
The {servicename} is found in services.msc. Note that it is NOT the verbose
name you see in the listing, but the one in the properties window.
AFAIK NET.EXE doesn't allow you to disable or de-register a service. To do
this programmatically you can use a .reg file (the services are
straightforward registry keys) or AutoIt has extensions for this purpose.
http://www.autoitscript.com
"K" wrote:
> As the title says, is it possible to stop and disable a service in XP using
> a script? And if so can someone point me in the right direction for syntax.
>
> Thanks
>
>
>