Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 362
Bharani Avatar asked Apr 02 '09 08:04

Bharani


2 Answers

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/

like image 120
Andrei Serdeliuc ॐ Avatar answered Oct 30 '22 23:10

Andrei Serdeliuc ॐ


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

like image 25
1800 INFORMATION Avatar answered Oct 30 '22 21:10

1800 INFORMATION