Take a look at our
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message
batch command to disable a service?
-
mattbiernat
- ThinkPadder

- Posts: 1626
- Joined: Sun Aug 27, 2006 12:18 pm
- Location: Brooklyn, NY
batch command to disable a service?
i was looking around the next for a batch command to disable a service.
and all i found was this:
sc stop windows update
sc config windows update start= disabled
however it does not work. what am i doing wrong here?
and all i found was this:
sc stop windows update
sc config windows update start= disabled
however it does not work. what am i doing wrong here?
Re: batch command to disable a service?
Try the net command.
For example to stop Windows Update:
Quotes are needed by this one because the service name contains a space char.
Code: Select all
net stop <service_name>
net start <service_name>Code: Select all
net stop "Windows Update"ThinkPad™ X201 / AFFS-120
i5-560M 2.67Ghz, 8GB RAM, Samsung 840 Pro 256GB SSD, Win 8 Pro 64-bit, UltraBase X200, ThinkPad Compact USB Keyboard,
Dell U2713HM (2560x1440, IPS), ExpressCard USB 3.0 (2 ports, flush), Nexus 7+10
i5-560M 2.67Ghz, 8GB RAM, Samsung 840 Pro 256GB SSD, Win 8 Pro 64-bit, UltraBase X200, ThinkPad Compact USB Keyboard,
Dell U2713HM (2560x1440, IPS), ExpressCard USB 3.0 (2 ports, flush), Nexus 7+10
-
mattbiernat
- ThinkPadder

- Posts: 1626
- Joined: Sun Aug 27, 2006 12:18 pm
- Location: Brooklyn, NY
Re: batch command to disable a service?
the net stop command works very well however it stops the service instead of disabling it.
Re: batch command to disable a service?
I think the commands are meant to work dynamically (so there is a NET STOP and NET START pair). If you want to permanently disable a service, consider using the GUI interface for services. ... JDH
Re: batch command to disable a service?
Matt:
I think your first post was correct except that the name of the service is not "Windows Update" but rather "wuauserv" (look in the "Services" GUI window for the name).
Open the "Services" GUI and try the commands while watching the GUI for feedback. I just tried it to confirm that it works.
I think your first post was correct except that the name of the service is not "Windows Update" but rather "wuauserv" (look in the "Services" GUI window for the name).
Open the "Services" GUI and try the commands while watching the GUI for feedback. I just tried it to confirm that it works.
Mark
X61T 7764-CTO, Core 2 Duo L7500 LV 1.6 GHz, 4 GB RAM, 120 GB Intel X25M SSD
Multiboot w/Grub4DOS -- Windows 10, MustangPE, PartedMagic
My ex: X41T (2005 - 2009)
X61T 7764-CTO, Core 2 Duo L7500 LV 1.6 GHz, 4 GB RAM, 120 GB Intel X25M SSD
Multiboot w/Grub4DOS -- Windows 10, MustangPE, PartedMagic
My ex: X41T (2005 - 2009)
-
mattbiernat
- ThinkPadder

- Posts: 1626
- Joined: Sun Aug 27, 2006 12:18 pm
- Location: Brooklyn, NY
Re: batch command to disable a service?
ok thanks KOLO. that worked! now could anyone please tell me about a command to enable a service? google doesn't seem to come up with anything..
Re: batch command to disable a service?
Matt:
To disable Windows Update service: sc config wuauserv start= disabled
To enable Windows Update service: sc config wuauserv start= auto
Other options for the start= parameter are:
start= <boot|system|auto|demand|disabled|delayed-auto>
These are from Vista/Windows 7. I don't think XP has delayed-auto, for example.
To disable Windows Update service: sc config wuauserv start= disabled
To enable Windows Update service: sc config wuauserv start= auto
Other options for the start= parameter are:
start= <boot|system|auto|demand|disabled|delayed-auto>
These are from Vista/Windows 7. I don't think XP has delayed-auto, for example.
Mark
X61T 7764-CTO, Core 2 Duo L7500 LV 1.6 GHz, 4 GB RAM, 120 GB Intel X25M SSD
Multiboot w/Grub4DOS -- Windows 10, MustangPE, PartedMagic
My ex: X41T (2005 - 2009)
X61T 7764-CTO, Core 2 Duo L7500 LV 1.6 GHz, 4 GB RAM, 120 GB Intel X25M SSD
Multiboot w/Grub4DOS -- Windows 10, MustangPE, PartedMagic
My ex: X41T (2005 - 2009)
-
mattbiernat
- ThinkPadder

- Posts: 1626
- Joined: Sun Aug 27, 2006 12:18 pm
- Location: Brooklyn, NY
Re: batch command to disable a service?
thanks that worked again.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Disable Touchpad on ThinkPad T490?
by Clueless in Seattle » Tue Jan 20, 2026 9:57 pm » in ThinkPad T430-T495 / T530-T590 Series - 3 Replies
- 4593 Views
-
Last post by dcfbf
Sun Feb 08, 2026 1:41 am
-
Who is online
Users browsing this forum: No registered users and 26 guests





