When you enable password expiration for an account, the user will be forced to change their password the next time they sign in when it expires.
A local account password will expire when a maximum (42 days by default) and minimum ( 0 days by default) password age has been reached by default.
A Microsoft account password will expire every 72 days by default.
This tutorial will show you how to enable or disable password expiration for an account in Windows 10 and Windows 11.