Get-ADUser -Filter {pwdLastSet -eq 0} | select Name, Samaccountname
If the answer is helpful, please click "Accept Answer" and kindly upvote it.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Dear experts,
I'm looking for the powershell command to help list all the users that haven't changed their initial password since the account was created. We created new AD users with the option of User must change password at next logon. I know that we can check if the checkbox was ticked or not manually but is there an automate way in Powershell to do so?
I'm using get-member but didn't see the relevant attribute.
Thanks a lot.
Get-ADUser -Filter {pwdLastSet -eq 0} | select Name, Samaccountname
If the answer is helpful, please click "Accept Answer" and kindly upvote it.