Automatically Disable Service on Start up

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Problem: Want to push out an Office 03 deployment using a custom installation
file to move the Icons on desktop. Webroot Spysweeper service is installed. I
need to know if there is a way to send out a batch or some other automated
way to disable the webroot services. There is no way to NET STOP them becuase
that feature is not available. The only choice is to disable them. Is there a
way to do this from services via a script or batch file?
 
Why is net stop not available?

Use sc stop.

sc stop

Sends a STOP control request to a service.

Syntax
sc [ServerName] stop ServiceName

Parameters

ServerName
Specifies the name of the remote server on which the service is located. The
name must use the UNC format ("\\myserver"). To run SC.exe locally, ignore
this parameter.

ServiceName
Specifies the service name returned by the getkeyname operation.

/?
Displays help at the command prompt.

Remarks
Not all services can be stopped.

Examples
The following example shows how you can use the sc stop command:

sc stop tapisrv

See also sc start.
Paste the following line into Start | Run and click OK...

hh ntcmds.chm::/sc.htm

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top