bat file - net stop service doesn't work


  1. Posts : 22
    Windows 7 Ultimate 64bit
       #1

    bat file - net stop service doesn't work


    I need bat file to stop service.
    Net stop servicename doesn't work.
    I get message syntax is:
    NET STOP
    service

    Please help.
      My Computer


  2. Posts : 72,059
    64-bit Windows 11 Pro for Workstations
       #2

    Hello tweaker, :)

    Which service are your trying to stop?

    Services - Start or Disable - Windows 7 Help Forums
      My Computer


  3. Posts : 22
    Windows 7 Ultimate 64bit
    Thread Starter
       #3

    thanks perfect, where i found it wasn't in quotes, i woudn't guess that's problem
      My Computer


  4. Posts : 72,059
    64-bit Windows 11 Pro for Workstations
       #4

    Great news.
      My Computer


  5. Posts : 714
    Win 7 Pro, SP1, x86, Win-11/Pro/64
       #5

    A little background:

    When Microsoft releases a new OS, they turn on, by default, just about every Service that any of their customers would ever want. But for most of us, home PC users, there are a lot of those services that will never be needed and should just be disabled, to save memory and CPU time.

    One source of information about what each Service does and which ones can safely be shut off is the "Black Viper" web site.
    From that site, I was able to write a single batch file, that disables as many services as I like.
    That helps me to get the most out of every PC that I have to set up with Windows xx.
    Here is an excerpt from that batch file.

    @echo off
    cls
    rem This batch file will Stop selected Services and set them to Disabled.
    rem The following are a few examples of task name vs actual program name.
    rem Schedule = Task Scheduler
    rem Themes = Themes
    rem W32Time = Windows Time
    rem SysMain = Superfetch
    rem WinDefend = Windows Defender
    rem
    sc config Appinfo start= demand
    sc stop Appinfo

    sc config ALG start= demand
    sc stop ALG

    sc config AppMgmt start= demand
    sc stop AppMgmt

    sc config wbengine start= demand
    sc stop wbengine

    sc config CertPropSvc start= disabled
    sc stop CertPropSvc

    sc config Keylso start= demand
    sc stop Keylso

    sc config COMSysApp start= demand
    sc stop COMSysApp

    My actual "StopServices.bat" file is a bit longer, but this can give y'all an idea of how it's done.
    Disabling unneeded Services can and will improve performance.

    Happy Computing!
    TechnoMage

      My Computer


  6. Posts : 1,851
    Windows 7 pro
       #6

    If the service name has spaces in it you need quotes otherwise windows won't know what you are talking about since it only looks at the first word. Also when running the bat file you have to right click and select run as administrator even if you are an administrator. You also you need to change the services to manual or they will start automatically on next reboot.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:55.
Find Us