简体   繁体   English

通过命令行配置windows服务

[英]Configure windows service through command line

I need to enable the "Allow service to interact with desktop" option in the service properties through command line.我需要通过命令行在服务属性中启用“允许服务与桌面交互”选项。
How to accomplish that?如何做到这一点?
I tried the "sc" command.我尝试了“sc”命令。 But I can't achieve what I need.但我无法达到我所需要的。

Have you tried "sc config servicename type= interact type= own"您是否尝试过“sc config servicename type=interact type=own”

Also: http://social.microsoft.com/Forums/en-US/vcgeneral/thread/3311c5b7-be80-466e-8d49-fc431115aea9/另外: http://social.microsoft.com/Forums/en-US/vcgeneral/thread/3311c5b7-be80-466e-8d49-fc431115aea9/

Keep in mind that this feature is pretty much going away in newer versions of windows, for example in Vista it is ignored - services are no longer allowed to interact with the desktop for security reasons请记住,此功能在 windows 的较新版本中几乎消失了,例如在 Vista 中它被忽略 - 出于安全原因,不再允许服务与桌面交互

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM