命令行大全

disable

秃噜豆儿 发表于 2020-06-19 14:08浏览次数:

disable命令是Recovery Console的一部分。它用于禁用Windows系统服务或驱动程序。

查看英文版

目录:

1 disable 运行系统环境

2 disable 语法

3 disable 示例

disable 运行系统环境

Windows xp

Windows 2000

disable 语法

禁用Windows系统服务或驱动程序。
禁用服务名。
servicename是要禁用的服务或驱动程序的名称。
将其重置为SERVICE_DISABLED之前,禁用旧start_Type。如果需要再次启用该服务,则应记下旧的start_Type。
disable命令显示的start_Type值为:
SERVICE_DISABLED
SERVICE_BOOT_START
SERVICE_SYSTEM_START
SERVICE_AUTO_START
SERVICE_DEMAND_START
Disables a Windows system service or driver.
DISABLE servicename
The servicename 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

查看英文版

查看中文版

disable 示例

disableSERVICE_AUTO_START

上面的示例将禁用自动启动服务。如果要重新启用此服务,则需要使用旧的start_Type 使用enable命令。

要列出可用的服务和驱动程序,请运行listvc命令。

disableSERVICE_AUTO_START

The example above would disable the auto start service. If you want 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.

查看英文版

查看中文版