Computing.Net > Forums > Programming > Disable service using batch

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Disable service using batch

Reply to Message Icon

Original Message
Name: Ian
Date: November 14, 2003 at 08:10:46 Pacific
Subject: Disable service using batch
OS: any
CPU/Ram: any
Comment:

Hi, I wrote a program for my company that will delete a bunch of norton registry entries. (im doing this because we are going to be switching to mcafee and norton uninstall doesnt work) However, I can't get it to completly uninstall until I disable 2 services (services located in control panel/administrive tools/services) This program runs from a server so I cannot manualy disable these services. Does anyone know how to tell a batch program to disable these 2 services:
DefWatch
Norton AntiVirus Client


Report Offensive Message For Removal


Response Number 1
Name: Infinite Recursion
Date: November 14, 2003 at 15:56:58 Pacific
Reply:

you can try NET STOP "servicename"



Report Offensive Follow Up For Removal

Response Number 2
Name: Ted Laun
Date: November 26, 2003 at 07:43:12 Pacific
Reply:

You can use the sc.exe tool
sc config "service name here" start= disabled
(note the space between = and disabled)


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home



Results for: Disable service using batch

How to seach *.mp3 etc using batch
    Summary: Hi, I need help on how to write a script using batch to search for a particular file ext ie *.mp3 or *.jpg and save the particular file on a new created folder? ...
www.computing.net/answers/programming/how-to-seach-mp3-etc-using-batch/15950.html

Start messenger service with batch
    Summary: im trying to make a batch file to start the messenger service in WinXP. I have " net start messenger " but get The service cannot be started, either because it is disabled or because it has no enab...
www.computing.net/answers/programming/start-messenger-service-with-batch/15836.html

Batch to del first x lines of text
    Summary: What I am trying to do is delete the first X number of lines from a text file using a batch file on all text files in a folder. all files are in the format From: <Address> To: <Addresses on in...
www.computing.net/answers/programming/batch-to-del-first-x-lines-of-text/16887.html








Which MP3 player do you have?

iPod/iPhone
Zune
Something Else
None


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge
Poll History






Data Recovery Software