Professional Documents
Culture Documents
To determine when the password will expire for a single account open the command prompt and
type the following command:
In addition to displaying the password expires date it also provides other useful information such
as password last set, when the password can be changed, if the account is active and so on.
To find the date the password was last set, run this command.
In the screenshot below you can see it returns all users, password last set date and if the
password never expires.
To display the expiration date rather than the password last set date, use this command.
To export any of the PowerShell results to a CSV just add | export-csv FILEPATH to the end.
I told you this was going to be easy. The PowerShell commands you can literally copy and past
and they should work in your environment. The Net User command just requires you to enter in
an AD user account to query.
What I like best about SAM is it’s easy to use dashboard and alerting features. It also has the
ability to monitor virtual machines and storage.