Would you like to learn how to find users who did not change the password in Active Directory using Powershell? In this tutorial, we are going to show you how to use Powershell to find users who did not change their password in Active Directory after a specific number of days using the command-line on a computer running Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Related tutorial - PowerShell

On this page, we offer quick access to a list of tutorials related to PowerShell.

Tutorial Powershell - Finding users who did not change password

As an Administrator, start a new POWERSHELL command-line prompt.

Windows 10 - powershell elevated

Find users in Active Directory with a password older than 10 days.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

In our example, we found users that did not change the password for 10 days or more.

Optionally, export the result as a CSV file.

Copy to Clipboard

Here is the CSV file content.

Copy to Clipboard

Find users in Active Directory with a password older than 30 days.

Copy to Clipboard

Find users in Active Directory with a password older than 60 days.

Copy to Clipboard

Find users in Active Directory with a password older than 90 days.

Copy to Clipboard

Find users in Active Directory with a password older than 180 days.

Copy to Clipboard

Congratulations! You are able to find users who have not changed their password for more than 10 days using Powershell.