Re: Modify Local Security Settings via code



sorry,

it is LsaOpenPolicy - just saw that there is also a wrapper on pinvoke.net

http://www.pinvoke.net/default.aspx/advapi32/LsaOpenPolicy.html

but also look into the Windows SDK.

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Dominick, thanks for your quick reply. I did a search on Google for
LsaEnumPolicy and it returned with nothing. Is there something better
I should be searching for or a link you could direct me to?

"Dominick Baier [DevelopMentor]" wrote:

thats not directly accessible via managed code - LsaEnumPolicy and
friends are where you have to start with.

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
Hopefully this is simple and I'm just missing it. I need to be able
to use C# code in .Net to change the values of some of the Local
Security Settings under Local Policies...User Rights Assignment. So
far I haven't been able to find anything on how to change Local
Security settings via code. Can anyone point me in the right
direction or show a code sample?

Thanks,
Rob


.



Relevant Pages

  • Re: Modify Local Security Settings via code
    ... thats not directly accessible via managed code - LsaEnumPolicy and friends are where you have to start with. ... Dominick Baier - DevelopMentor ... Security Settings under Local Policies...User Rights Assignment. ...
    (microsoft.public.dotnet.security)
  • Re: Securing static files
    ... Dominick Baier - DevelopMentor ... they are kicked back to the login page. ... The user may log in with other credentials. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: How to determine if the logged on user is in a group
    ... Dominick Baier - DevelopMentor ... I found that you to reboot the SERVER after you create a new group and put users in it so that the new group and the users appear in the whoami list on the server. ... although he is a member of these groups. ...
    (microsoft.public.dotnet.security)
  • Re: HOWTO: Prevent Dynamic Loading of internal Types
    ... Dominick Baier - DevelopMentor ... Henning Krause ... I could get the public key from the entry assembly via ...
    (microsoft.public.dotnet.security)
  • Re: How to call Web Service Securely
    ... which .net version - which type of authentication (username/password against a db??) ... Dominick Baier - DevelopMentor ... make a web method via dialup to my IIS Web Service. ...
    (microsoft.public.dotnet.framework.aspnet.security)