Local user Password Must Expiry to override the "Password Never expires Flag"

Welcome Forums General PowerShell Q&A Local user Password Must Expiry to override the "Password Never expires Flag"

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
1 week, 2 days ago.

  • Author
    Posts
  • #128601

    Participant
    Points: -8
    Rank: Member

    Is there away in Powershell DSC to disable the local user (non-domain) account "password never expires" option? 

    Even Administrators of the computer also should not get option to check "Password never expires" flag ..Policy should enforce over Password nerver expires Flag

  • #128724

    Participant
    Points: 31
    Rank: Member

    The DSC forum is over there —>

    You should be able to use the DSC User Resource for this:
    https://docs.microsoft.com/en-us/powershell/dsc/userresource

You must be logged in to reply to this topic.