Hello Everyone :)
I have a Windows service built which is being installed by .NET 2.0's installutil /i command.
It installs the service as with the following Account and Password:
NT AUTHORITY\LocalService
running my service with
net start
brings a Error 5: Access Denied Message.
To remove it I've had to open up services.msc and from the Properties give the service
Logon As -> Local System Account -> Allow Service to interact with desktop.
Can I put this whole "clicky" business into code which is either:
Native .NET C# code
OR
WMI or some other Batch script.
I'll be using a batch script anyways so either is fine :)
Thanks for the help!