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 Profile photo of Nitin Gupta Nitin Gupta 4 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38665
    Profile photo of Kiran
    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
    Profile photo of Nitin Gupta
    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.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.