his can also be done via an elevated command prompt using the sc command. The syntax is:

sc config [service name] depend= <Dependencies(separated by / (forward slash))>

Note: There is a space after the equals sign, and there is not one before it. So if you want ServiceA to depend on both ServiceB and ServiceC--that is to say, ServiceA will not start until the other two have started--then you would use this:

sc config ServiceA depend= ServiceB/ServiceC

Edit: Also, if you want to remove all dependencies, you have to use the following syntax:

sc config ServiceA depend= /

Warningdepend= parameter will overwrite existing dependencies list, not append. So for example, if ServiceA already depends on ServiceB and ServiceC, if you run depend= ServiceD, ServiceA will now depend only on ServiceD.

最新文章

  1. JDBC数据库访问操作的动态监测 之 Log4JDBC
  2. Apache error: 403 Forbidden You don&#39;t have permission to access
  3. TF-IDF提取行业关键词
  4. windows下Ruby开发环境搭建
  5. DOCTYPE对$(window).height()取值的影响
  6. 《OD学storm》20160827
  7. codevs 1218 疫情控制
  8. Python学习笔记2——模块的发布
  9. Win32下 Qt与Lua交互使用(一):配置Qt下Lua运行环境
  10. Android 获取图片真实宽高
  11. C++模板:欧拉函数
  12. Webpack学习笔记(一)
  13. 【手记】解决EXCEL跑SQL遇“查询无法运行或数据库表无法打开...”
  14. Linux中JDK安装教程
  15. shell脚本学习-循环
  16. Unet网络
  17. 高斯消元处理无解|多解情况 poj1830
  18. 什么是SpringCloud
  19. JWT总结
  20. 个性化 UIAlertController

热门文章

  1. JS——void(0)
  2. CSS——层叠性
  3. JS——事件基础应用
  4. JS——try catch throw
  5. Ubuntu 关闭guest用户
  6. (转)分布式文件存储FastDFS(四)配置fastdfs-apache-module
  7. jq购物车结算功能
  8. POJ3984——迷宫问题
  9. Codevs P1017 乘积最大
  10. python爬虫19 | 遇到需要的登录的网站怎么办?用这3招轻松搞定!