Windows – Configure windows service through command line

command-lineservicewindows

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"

Also: http://social.microsoft.com/Forums/en-US/vcgeneral/thread/3311c5b7-be80-466e-8d49-fc431115aea9/