batch command to disable a service?
-
mattbiernat
- ThinkPadder

- Posts: 1621
- 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: 1621
- 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: 1621
- 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: 1621
- 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
-
-
Possible 4th batch of x62's
by jaspen-meyer » Wed Feb 15, 2017 3:14 pm » in Thinkpad X6x Series incl. X6x Tablet - 10 Replies
- 1938 Views
-
Last post by wujstefan
Fri Mar 31, 2017 4:53 am
-
-
-
SOLD : Thinkpad x62 third batch
by gaelga » Mon May 08, 2017 2:12 am » in Marketplace - Forum Members only - 5 Replies
- 521 Views
-
Last post by gaelga
Sat May 13, 2017 5:40 am
-
-
-
Invalid tar magic with tar command. Help.
by Blender » Fri Jan 06, 2017 1:35 am » in Linux Questions - 2 Replies
- 808 Views
-
Last post by jaspen-meyer
Mon Jan 09, 2017 2:06 am
-
-
-
ThinkPad T400 - Should I "Permanently Disable" Computrace?
by bakery2k » Sat Mar 04, 2017 8:38 pm » in ThinkPad T400/410/420 and T500/510/520 Series - 4 Replies
- 1221 Views
-
Last post by RealBlackStuff
Sun Mar 05, 2017 8:28 am
-
Who is online
Users browsing this forum: No registered users and 5 guests





