locked
How to read local security policy using c#? RRS feed

  • Question

  • User-1606269364 posted

    Hi

    I have to read local security policies(secpol.msc) account policy and local policy details. I tried with net accounts for password policy it wont displays password must meet complexity requirements and store passwords using reversible encryption options? how to read account policy and local polies from local security policy?

    Regards

     

    Wednesday, January 28, 2015 7:45 AM

All replies

  • User-821857111 posted

    You are unlikely to be able to do this in a web app. The user account won't have the right permission.

    Wednesday, January 28, 2015 8:01 AM
  • User-434868552 posted

    @Venkatesh Mn...

    I have to read local security policies(secpol.msc) account policy and local policy detail

    (a) WHY do you "have to read" them?

    (b) by "local" do you mean on your web server?  if you mean the client computer via your web application, you can not achieve this under normal circumstances AFAIK.

    Thursday, January 29, 2015 2:23 PM