[英]Windows service works when running through command line but not through Services
[英]Configure windows service through command line
我需要通过命令行在服务属性中启用“允许服务与桌面交互”选项。
如何做到这一点?
我尝试了“sc”命令。 但我无法达到我所需要的。
您是否尝试过“sc config servicename type=interact type=own”
另外: http://social.microsoft.com/Forums/en-US/vcgeneral/thread/3311c5b7-be80-466e-8d49-fc431115aea9/
请记住,此功能在 windows 的较新版本中几乎消失了,例如在 Vista 中它被忽略 - 出于安全原因,不再允许服务与桌面交互
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.