Bharani
Bharani

Reputation: 303

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.

Upvotes: 6

Views: 7873

Answers (2)

1800 INFORMATION
1800 INFORMATION

Reputation: 135285

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

Upvotes: 4

Andrei Serdeliuc ॐ
Andrei Serdeliuc ॐ

Reputation: 5878

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/

Upvotes: 8

Related Questions