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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Disable service using batch

Reply to Message Icon

Name: Ian
Date: November 14, 2003 at 08:10:46 Pacific
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



Sponsored Link
Ads by Google

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

you can try NET STOP "servicename"



0

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)


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







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


Sponsored links

Ads by Google


Results for: Disable service using batch

How to seach *.mp3 etc using batch www.computing.net/answers/programming/how-to-seach-mp3-etc-using-batch/15950.html

Using batch script print filenames in folder www.computing.net/answers/programming/using-batch-script-print-filenames-in-folder-/19171.html

Rename multiple iles in folder using Batch www.computing.net/answers/programming/rename-multiple-iles-in-folder-using-batch/19638.html