local-security-policy

Modifying/detecting Local Security Policy programmatically

Is it possible to do at least one of the following: 1) Detect a setting of a Local Security Policy (Accounts: Limit local account use of blank passwords to console logon only) 2) Modify that setting Using Win32/MFC? Thanks in advance. ...

C#. How to programmatically grant User Log On as a Service

Hi! I've searched through the internet, but haven't found any solution in c#. Does anybody know how to give user right to log on as a Service in c#? ...