Local policy

delphi package - easy access to security apis
Post Reply
humantool
Posts: 2
Joined: Mon May 22, 2006 12:22 pm

Local policy

Post by humantool »

hi,
i've got a delphi-made service. When i install it on a new computer, i assign it an account In delphi all i have to do, is to assign the properties ServiceStartName and Password, launch my service with the argument /INSTALL and the account used is granted with 'Open session as a service' right.
The problem is when i want to do it automatically in my install program this didn't work !
My question is if your security solution allow me to grant this kind of right by code (see Control panel/Administrative tools/Local policies/Local policy if you don't get what i mean)


Thanks
HumanTool
madshi
Site Admin
Posts: 10540
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

I'm sorry, I've no idea what exactly needs to be entered into the policy or how that would work. Maybe by accessing the ADS interfaces somehow. I don't think my security units can help you much in this situation.
humantool
Posts: 2
Joined: Mon May 22, 2006 12:22 pm

Post by humantool »

ok, thanks by the way ! :cry:
i'm going search through my installation program :confused:

regards
Humantool
Post Reply