Microsoft DOS disable command
Quick links
About disable
Availability
Syntax
Examples
About disable
The disable command is a recovery console command that disables Windows system services or drivers.
Availability
The disable command is a recovery console command that is available in the below Microsoft operating systems.
Windows 2000
Windows XP
Syntax
Disables a Windows system service or driver.
disable servicename
service name is the name of the service or driver to be disabled.
Disable prints the old start_type of the service before resetting it to SERVICE_DISABLED. You should make a note of the old start_type, in case you need to enable the service again.
The start_type values that the disable command displays are:
SERVICE_DISABLED
SERVICE_BOOT_START
SERVICE_SYSTEM_START
SERVICE_AUTO_START
SERVICE_DEMAND_START
Examples
disable <servicename> SERVICE_AUTO_START
The above example would disable the auto start service. If you wish to re-enable this service, you would want to use the enable command, using the old start_type.
To list the available services and drivers, run the listsvc command. |