locked
Can someone explain this - get-aduser displays passwordneverexpires as false ( this mean the password expires) RRS feed

  • Question

  • Can someone explain this - get-aduser displays passwordneverexpires as false ( this mean the password expires)
    from the same powershell window i type net user <uesrname> /dom  and the password expires is set to Never (this means password does not expire)
    There is conflicting information - my reports for aduser is misleading - sample below

    *************************************************

    get-aduser christopher.ellis -properties passwordneverexpires

    Enabled              : True
    GivenName            : Christopher
    Name                 : Christopher.Ellis
    PasswordNeverExpires : False
    SamAccountName       : christopher.ellis

    ************************************************************
    net user christopher.ellis /domain
    The request will be processed at a domain controller for domain XXXXXXXX.ca

    User name                    christopher.ellis
    Country/region code          (null)
    Account active               Yes
    Account expires              Never

    Password last set            9/20/2018 2:11:28 PM
    Password expires             Never
    Password changeable          9/20/2018 2:11:28 PM
    Password required            Yes

    Thank you for shedding some light on this issue
    Wednesday, October 3, 2018 1:38 PM

All replies

  • Hi,

    Thanks for your question.

    When I try these two commands, I got the output below.

    There is nothing wrong. Try to use the command below to modify the property of passwordneverexpire.

    Set-ADUser -Identity (Get-ADUser demo01) -PasswordNeverExpires $true

    Best Regards,

    Lee


    Just do it.

    Thursday, October 4, 2018 3:19 AM
  • Hi,

    Was your issue resolved?

    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

    Best Regards,

    Lee


    Just do it.

    Friday, October 26, 2018 8:40 AM
  • Hi,

    As this thread has been quiet for a while, we will mark it as ‘Answered’ as the information provided should be helpful. If you need further help, please feel free to reply this post directly so we will be notified to follow it up. You can also choose to unmark the answer as you wish.

    Best Regards,

    Lee


    Just do it.

    Monday, November 5, 2018 9:21 AM