Solved bat file - net stop service doesn't work

tweaker563

New member
Local time
7:31 AM
Messages
22
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

Computer type
PC/Desktop
OS
Windows 7 Ultimate 64bit
CPU
Intel i7 3770
Motherboard
gigabyte ga b75m-d2v
Memory
KHX1333C7AD3K2/8G
Graphics Card(s)
geforce 560
Sound Card
Realtek ALC887 codec
Monitor(s) Displays
asus vg248qe
Hard Drives
samsung 840 evo
Keyboard
cooler master nova touch tkl
Mouse
razer deathadder chroma

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
thanks perfect, where i found it wasn't in quotes, i woudn't guess that's problem
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate 64bit
CPU
Intel i7 3770
Motherboard
gigabyte ga b75m-d2v
Memory
KHX1333C7AD3K2/8G
Graphics Card(s)
geforce 560
Sound Card
Realtek ALC887 codec
Monitor(s) Displays
asus vg248qe
Hard Drives
samsung 840 evo
Keyboard
cooler master nova touch tkl
Mouse
razer deathadder chroma
Great news. :party:
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
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 :cool:

 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Various
OS
Win 7 Pro, SP1, x86, Win-11/Pro/64
CPU
AMD
Motherboard
Various
Memory
8GB Crucial
Graphics Card(s)
Various
Sound Card
OnBoard
Monitor(s) Displays
Acer 21.5"
Hard Drives
Crucial SSD, 500 GB
PSU
OEM
Case
SFF Slim Line Case
Cooling
OEM
Keyboard
eMachines
Mouse
Logitech Wireless
Internet Speed
varies
Antivirus
Windows Defender/Super Anti-Spyware
Browser
Firefox
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 Computers

System One System Two

Back
Top