简体   繁体   中英

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. But I can't achieve what I need.

Have you tried "sc config servicename type= interact type= own"

Also: 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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