My code works fine on one computer but the same code generates error code 5 (access denied) on another computer. Essentially ::OpenService() call fails because of the flag SERVICE_START because the user doesn't have privileges to start the service. I know because it does start the service if I start the app as administrator.
I want the same privileges on the 2nd computer so any user can start a service but can't figure out which settings is responsible for that. I looked into group policy >> Computer Configuration >> Windows Settings >> Security Settings >> Local Policies >> User Rights Assingment.
I don't know if I am even looking at the right place. Does anyone know?