A
Andrey Zakharchuk
Hello, All.
I need an ability to read/write a number of security settings: "Local
Security Policy" values like a "Password Policies" ("Minimum password
length", "Maximum password age"), "Account Lockout Policy" ("Account
lockout threshold", "Account lockout duration", "Reset account lockout
after") etc. I need to do this from, lets say, C#/Delphi/VB code. Colud
anyone give me a little sample or URL with explanation how to do that?
I tried a lot of methods from LSA API to ADSI. LSA API seems to be not
very suitable for this task (at least I didn't found the way how to
access these values).
ADSI seems to be better, but most of samples I saw are about domain/user
management. I guess security settings are present somewhere in the AD
but I don't know this path and structure of this values (classes,
attributes etc).
Is there some other ways to except LSA API and ADSI?
Thank you in advance.
I need an ability to read/write a number of security settings: "Local
Security Policy" values like a "Password Policies" ("Minimum password
length", "Maximum password age"), "Account Lockout Policy" ("Account
lockout threshold", "Account lockout duration", "Reset account lockout
after") etc. I need to do this from, lets say, C#/Delphi/VB code. Colud
anyone give me a little sample or URL with explanation how to do that?
I tried a lot of methods from LSA API to ADSI. LSA API seems to be not
very suitable for this task (at least I didn't found the way how to
access these values).
ADSI seems to be better, but most of samples I saw are about domain/user
management. I guess security settings are present somewhere in the AD
but I don't know this path and structure of this values (classes,
attributes etc).
Is there some other ways to except LSA API and ADSI?
Thank you in advance.