Question service startinfo.username (Local account)

mikeb

New member
Joined
Mar 14, 2012
Messages
2
Programming Experience
10+
Hello...

I have a service that installs correctly with the project installer setup. The service starts an executable but it shows up in the task manager as running under "SYSTEM". I would like to run it as a local account that has admin privileges.
Before starting the process, I use
myprocess.startinfo.username = "mylocaladmin"
myprocess.startinfo.password = "mypword"

This user is not on the domain. Whether I specify a value for this field or not, the executable runs under SYSTEM.

Has anyone been able to do this without using impersonation?

Thanks
 
Yes. They are both set correctly. Note that the service starts my executable like I want... just not with the correct username. It starts it under SYSTEM
 
Back
Top