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

Best Solution

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