Sometimes it is useful to know the exact expiration date of a Windows password. The following CMD command is available for this purpose:
net user USERNAME /domain | find “Password expires”
Important: Start the CMD as administrator. If the user is domain admin, all other users of a domain can be queried as well.