Setting Security Policy => Log on as a service
Posted on 2002-05-31
I've created a service application with "srvany.exe" and i've set this service to Log On as a specific user, because it needed more then the Local System account. All of this process was done in a .bat file.
But after that, when i'm trying to start the service, it gives an error : "Error 1069 - The service did not start due to a logon failure".
This problem is caused because the user associated to the service is not part of the security policy "Log on as a service". Manually, i now how to add this user to solve the problem...
- but how can i add this user to this policy within a .bat file ??
- is there any application or utility that could do the job ??
- any programming type so that to the extreme i build my own .exe to do it ??
thanks in advance,