How do I use DSC to change the password complexity setting for local users?

This topic contains 1 reply, has 2 voices, and was last updated by  Nitin Gupta 1 year, 4 months ago.

  • Author
    Posts
  • #38665

    Kiran
    Participant

    I cannot find the registry entry or entries that govern the password complexity of local users. The entry described in this 11-year-old document did not exist on my Windows 2012 Server: http://www.beginningtoseethelight.org/ntsecurity/index.htm

    Other postings and articles don't explain where the entry is. Some even say to not modify this setting in the registry. I therefore do not know how to use DSC to change the password complexity policy setting. How do I use DSC to change the password complexity setting for local users?

  • #38787

    Nitin Gupta
    Participant

    you can use "net accounts" to manage the password complexity. For example the following will set the max password age to 50 days using script resource:
    setscript = 'net accounts /maxpwage:50'.
    This link has more details.

You must be logged in to reply to this topic.