Batch file to stop services fails

donach

New member
Local time
3:43 PM
Messages
3
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 My Computer

Computer Manufacturer/Model Number
acer 5738
OS
windows 7 home premium
CPU
core 2 duo t6400 2ghz
Memory
4gb
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 My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell OP7010
OS
Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
Memory
16GB
Monitor(s) Displays
4 Dell 24" LCD
Screen Resolution
1280x1024
Keyboard
Dell
Mouse
Dell Optical
Internet Speed
40meg
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 My Computer

OS
Windows 7, 64 bit (on my 'main' computer)
Back
Top