首页 > 其他 > 详细

命令行配置服务启动类型

时间:2021-08-06 17:34:49      阅读:33      评论:0      收藏:0      [点我收藏+]

 

sc config <service name> start=<mode>
For example,

sc config tlntsvr start=auto
automatically starts the tlntsvr service when you boot the system.

The start options are

auto--a service automatically started at boot time, even if no user logs on
boot--a device driver loaded by the boot loader
demand--a service that must be manually started (the default)
disabled--a service that can‘t be started
system--a service started during kernel initialization

 

命令行开启windows ntp服务

 

sc config w32time start=auto
sc start w32time
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer" /v Enabled /t REG_DWORD /d "1" /f

 

命令行配置服务启动类型

原文:https://www.cnblogs.com/wolbo/p/15108878.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!