Thread: Permanently disable a service?

  1. #1
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823

    Permanently disable a service?

    Quick (dumb) question - I've got a program I need to run here at work, and it doesn't work unless I disable a specific service. Frequently, after I change the service to disabled, it's restarted when I restart the computer. Is there any way to prevent this from happening?

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    START > Run > msconfig > Services Tab > Uncheck the Service

    This assumes Windows, of course.
    Sent from my iPadŽ

  3. #3
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Yes, I'm on Windows.

    Is that method different than using the computer management screen to disable it?

  4. #4
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Quote Originally Posted by Govtcheez
    Is that method different than using the computer management screen to disable it?
    You mean the Task Manager (CTRL-ALT-DEL)?

    Yes, it is. The Task Manager lists the processes currently running. You can disable them, but it only disables them until the computer is rebooted. The System Configuration Utility(msconfig) lists the Services that boot on Start Up. Disabling them will disable them permanently until they are reenabled by the user.

    Be careful, of course, of what you disable because Windows will let you disable necessary startup services.
    Last edited by SlyMaelstrom; 05-04-2006 at 10:03 AM.
    Sent from my iPadŽ

  5. #5
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    > You mean the Task Manager (CTRL-ALT-DEL)?

    No, as in right clicking on My Computer and selecting "Manage".

    For whatever reason, msconfig doesn't work on either of the PCs I tried it on. Is that included with Win 2K?

  6. #6
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Ah Win2k... that's actually the one out of the blue version that doesn't have MSCONFIG.

    Check this out: http://www.mlin.net/StartupCPL.shtml

    It's a psudo MSCONFIG that can be used in Windows 2000. I don't know about the manage app as I don't know Windows 2000, well.
    Sent from my iPadŽ

  7. #7
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Don't use msconfig for win2k/xp, use services.msc - you can use the 'run' command or launch it from control panel --> administrative tools. Then just set the offending service to whatever you want (disable, probably) - that's a right-click-->properties; it's easy enough to fiddle around with from there.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  8. #8
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Thanks Ken, but that brings up the same interface as the Manage Computer thing. I'll see if anything else is going on.

  9. #9
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Are you sure about that? If you launch it from the 'run' command doesn't it throw up the 'services' window?

    I might have an old hdd with win2k on it - give me a moment and i'll see if I can find it and fire it up....

    edit: Okay, done that and I can confirm that you should definitely get the 'services' window if you start-->run--> services.msc.
    Last edited by Ken Fitlike; 05-04-2006 at 12:22 PM.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  10. #10
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Yeah, you do get the services window, but it looks very similar to the Manage Computer Interface, like services.msc just brings up that part of Manage Computer.

    I'll try it next time that service randomly switches to Automatic from Disabled.

  11. #11
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>ike services.msc just brings up that part of Manage Computer.<<

    Yes, it does. But that's what you need to fiddle around with to control how/what/where/when services run.

    Good luck.

    edit: Well, after actually reading the thread properly, it seems you already tried and died with services. Other things to look at: make sure there's no entry for the offending program in the startup menu and check the various registry 'run' keys to ensure it's not there either, for example(msconfig and its analogues essentially do this):

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Run]

    If that still fails, you could always try a start-up script to disable it - the group policy editor might be useful in this regard (gpedit.msc).
    Last edited by Ken Fitlike; 05-04-2006 at 01:06 PM.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  12. #12
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    I would think if you change it to disable then it will still startup when the computer reboots if was originally set to automatic, but maybe if you set it to manual, then it comes up as not started when you reboot (since you'd have to restart it manually each time). Maybe try that?
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  13. #13
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    If you wanted a script, a simple bat file with "NET STOP" might suffice

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. running my program as service
    By daher in forum Windows Programming
    Replies: 5
    Last Post: 09-05-2008, 12:30 PM
  2. Windows service status checking
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 06-01-2008, 08:19 AM
  3. Consuming same Web Service multiple times
    By cfriend in forum C# Programming
    Replies: 2
    Last Post: 01-10-2006, 09:59 AM
  4. Disable Messenger Service Windows
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 08-22-2003, 05:07 PM
  5. Another windows service question... starting/stopping
    By BrianK in forum Windows Programming
    Replies: 1
    Last Post: 03-20-2003, 12:22 AM