enable
舞夕之 发表于 2020-06-28 17:29浏览次数:
Enable是用于激活和停用服务或驱动程序的故障恢复控制台命令。
Enable is a Recovery Console command used to activate and deactivate a service or driver.
目录:
1 enable 运行系统环境
2 enable 语法
3 enable 示例
enable 运行系统环境
enable 语法
启用Windows系统服务或驱动程序。
ENABLE servicename [start_Type]
servicename是要启用的服务或驱动程序的名称。
Start_Type是计划启动服务或驱动程序的方式。有效的开始类型值包括:
SERVICE_BOOT_START
SERVICE_SYSTEM_START
SERVICE_AUTO_START
SERVICE_DEMAND_START
Enable 在将服务重置为新值之前打印服务的旧Start_Type。请注意旧值,以防需要恢复服务的Start_Type。如果未指定新的Start_Type,则ENABLE将打印旧的Start_Type。
Enables a Windows system service or driver.
ENABLE servicename [start_Type]
The servicename is the name of the service or driver to be enabled.
The start_Type is how the service or driver is scheduled to be started. Valid start-Type values are:
SERVICE_BOOT_START
SERVICE_SYSTEM_START
SERVICE_AUTO_START
SERVICE_DEMAND_START
Enable prints the old start_Type of the service before resetting it to the new value. Note the old value, in case it is necessary to restore the start_Type of the service. If you do not specify a new start_Type, enable prints the old start_Type.
enable 示例
enableSERVICE_SYSTEM_START
上面的示例将启用自动 enable 服务。如果您想在以后禁用该服务,则需要使用DISABLE命令,并使用旧的Start_Type。
要列出可用的服务和驱动程序,请运行listsvc命令。
enableSERVICE_SYSTEM_START
The example above would enable the auto-start service. If you want to later disable that service, you would want to use the disable command, using the old start_Type.
To list the available services and drivers, run the listsvc command.