Batch file to disable a service?

Over Clocker said:
Cheers mate,

I assume that just stops that service for that session, but what i really need is to disable it for good.

Cheers,

Mal

Could you not just disable it in services.msc? *confused*
 
Cuchulain said:
There's probably some way of doing it over a domain using policy's...

It's quite easy actually, it's under Computer Configuration > Windows Settings > Security Settings > System Services.


Just disable the service you don't want running.
 
Over Clocker said:
Sorry, needs to be done on about 350 pcs!
Remember that if you're thinking about doing this by scripts, then they're ran with the target users credentials. Altering service startup options require Power User or above, which I'm guessing (hoping) most users wont have :)

Group policy is the way to go.
 
You could do it by scripts, but run them under the computer configuration in Group Policy as 'startup scripts' (not at work so can't member the last part exactly). This way, it uses the target machines system account, and you don't have to worry about what rights users have.
 
if you want to use a script for the commend

use the "sc" command, (just type in sc at the command prompt for usage)

But as mentioned, the logged on user will need admin rights to the local pc
 
Last edited:
Otacon said:
s require Power User or above, which I'm guessing (hoping) most users wont have :)

all the users here 150+ are power users, otherwise loads of software won't work.... bad idea ?

should they jus be standard users ?
 
Always. Not so much because of what the users may do (though there are always clever dicks - a little knowledge is a bad thing, and power user is enough to break a system), but because of the permissions it could grant a malicious process (virus/spyware).
 
Otacon said:
Always. Not so much because of what the users may do (though there are always clever dicks - a little knowledge is a bad thing, and power user is enough to break a system), but because of the permissions it could grant a malicious process (virus/spyware).

ahh cheers ! will take note of this in future :)
 
Back
Top Bottom