Here are we are setting password expiration for two different types of accounts. Microsoft Account, and the Local Windows account. If you are using a Microsoft account in Windows 10, then it becomes even more critical that you change it from time to time. When we say Set password Expiration Date, you can either choose what Windows 11/10 offers for local accounts or set using the “net” command.
Set Password Expiration Date for Microsoft Account
The only drawback of this method is that you need to change the current password to one which you haven’t repeated the past three times. Microsoft will then automatically prompt you to change the password every 72 days. You should know that this is different from PIN or Windows Hello, which you use on Windows 11/10 computer.
Set Password Expiration Date for Local Account
While it is possible to create a password-less account in Windows, it’s not a good idea. If you are the admin user of your computer, make sure all users change their password often. There are two ways of doing this, and it will force users to change their current password. The default is 42 days.
1] Using User accounts interface
There is a popular WMIC command, but it seems to be not working in Windows 11/10. If you use the command without the “where name” clause, it will set Password Expiration for all the accounts, including system accounts.
2] Command-Line Options to set Expiration Date
Once done, if you want to set an exact expiration date, then you need to use the “Net Accounts” command. Open PowerShell with Admin privileges, and execute the command Net Accounts. It will reveal details as below: If you want to set a particular expiration date, then you will have to calculate the figure in days. If you set it to 30 days, users will have to change their passwords once a month. If you want to force someone to change the password instantly, you can use maxpwage:1 Read: Force users to change Account Password at the next Login.
3] Use Group Policy to change Password Expiration Date
I hope the post was easy to follow, and you were able to set the password expiration date for User Account in Windows 11/10.