Batch file to stop services fails


  1. Posts : 3
    windows 7 home premium
       #1

    Batch file to stop services fails


    Back in the good ol days of xp when I wanted to take my machine off the net and use it for music production I had a seperate hardware profile setup with lots of services (including all the networking ones) disabled. With vista I discovered microsoft had taken this ablity away. So I wrote a batch file which when run as administrator would more or less do the same thing (lots of net stop commands). Now in windows 7 I've written a new one but whenever I run it (as admin of course) a cmd window flashes up for a second & then nothing... all the services are still running. What do I do?
      My Computer


  2. Posts : 2,737
    Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
       #2

    Click the ORB, then All Programs, Accessories, Right Mouse Click on “Command Prompt” and then “Run As Administrator”. Then you can run your script.

    You need to do something like:

    net stop <service name>
    net stop <service name>
    net stop <service name>
    net stop <service name>

    Simple Script to Stop Services:

    Code:
     
    @echo off
    net stop spooler
    That script will stop the Print Spooler service.

    I hope that helps.
      My Computer


  3. Posts : 3
    Windows 7, 64 bit (on my 'main' computer)
       #3

    I'm trying to make an autoexe.bat file that will stop 2 specific Western Digital service sthat hog RAM.

    I am testing out on my machine with the spooler service so that I know it works before I rill it out.

    I have;

    net stop spooler

    which , when run in a cmd prompt as administrator says that the service has successfully stopped, however when I go to verify by openeing services.msc it still says it's running. The cmd prompt and the GUI state 2 different things!
      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 01:20.
Find Us