windows how to tell when password expires code example
Example: how to know when your windows password will expire
1. Open Windows Command Prompt.
2. Type in the below command. Replace <your_Windows_username> with your acutal username.
net user <your_Windows_username> /DOMAIN | findstr expires