LKBEN11613: How to find out when the users password needs to be changed?


Symptom

You need to know the date when your password expires.

Cause

Migt be important from time to time.

Solution

To find out when you need to change your password again, you can use the "net user" command.

Here an example on a german system for the username "test1", which is a local account:

net user test1

This will show you the following result:

Benutzername                        test1
Vollständiger Name                  test1
Beschreibung                        test1
Benutzerbeschreibung
Länder-/Regionscode                 000 (Standardsystemvorgabe)
Konto aktiv                         Ja
Konto abgelaufen                    Nie

Letztes Setzen des Kennworts        08.12.2022 17:27:44
Kennwort läuft ab                   19.01.2023 17:27:44
Kennwort änderbar                   08.12.2022 17:27:44
Kennwort erforderlich               Ja
Benutzer kann Kennwort ändern       Ja

Erlaubte Arbeitsstationen           Alle
Anmeldeskript
Benutzerprofil
Basisverzeichnis
Letzte Anmeldung                    08.12.2022 17:27:56

Erlaubte Anmeldezeiten              Alle

Lokale Gruppenmitgliedschaften      *Benutzer
Globale Gruppenmitgliedschaften     *Kein
Der Befehl wurde erfolgreich ausgeführt.

For user  "Test1" the password will expire von 19th January 2023.

For a domain account, the command is slightly different:

net user domainname\test1 /domain

Have fun.

Disclaimer:

The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!

About the Author

Author: Wim Peeters - Keskon GmbH & Co. KG

Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.

Latest update: 05.01.2023