Find AD user last password changed date using PowerShell
The following is a comparison between getting AD user's last password changed date with Windows PowerShell and ADManager Plus:
Steps to obtain AD user’s last password changed details using PowerShell:
- Identify the domain from which you want to retrieve the report.
- Identify the LDAP attributes you need to fetch the report.
- Compile the script.
- Execute it in Windows PowerShell.
- The report will be exported in the given format.
- To obtain the report in a different format, modify the script accordingly to the needs of the user.
Sample Windows PowerShell script:
Click to copy entire script
-identity * -properties passwordlastset, passwordneverexpires | sort name | ft Name, passwordlastset, Passwordneverexpire
Steps to obtain AD user’s last password changed date:
- Click Reports -> Password Reports -> Password Changed Users.
- Select the domain, OU, and desired time period.
- Click Generate.
» Start 30-day Free Trial
Following are the limitations to change licenses of Office 365 users using native tools like Windows PowerShell:
- With additional filters, the script will get longer and more complicated.
- Troubleshooting these scripts requires extensive AD and scripting expertise.
ADManager Plus can help you replace licenses of Office 365 users in a simple and intuitively designed UI.