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. But I can't achieve what I need.
我需要通过命令行启用服务属性中的“允许服务与桌面交互”选项。怎么做到这一点?我尝试了“sc”命令。但我无法实现我的需要。
2 个解决方案
#1
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/
#2
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中它被忽略 - 出于安全原因,不再允许服务与桌面交互
#1
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/
#2
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中它被忽略 - 出于安全原因,不再允许服务与桌面交互