Sometimes it makes sense to have a user never expire the password.
On a non-home editions of Windows, this is easy: just run lusrmgr.msc
, then in the UI change the property for the user.
On home editions of Windows, you cannot do this in a GUI: those bits are either disabled or completely unavailable.
I did this on a demo VM system on an elevated command-prompt:
C:\>wmic UserAccount where Name='developer' set PasswordExpires=False Updating property(s) of '\\DEMO-VM\ROOT\CIMV2:Win32_UserAccount.Domain="DEMO-VM",Name="developer"' Property(s) update successful.
To show the current state (before I changed it):
C:\>wmic UserAccount where Name='developer' AccountType Caption Description Disabled Domain FullName InstallDate LocalAccount Lockout Name PasswordChangeable PasswordExpires PasswordRequired SID SIDType Status 512 DEMO-VM\developer FALSE DEMO-VM TRUE FALSE developer TRUE TRUE TRUE S-1-5-21-2478057260-1439466941-978077079-1002 1 OK
Via: [WayBack] Cocosenor: 4 ways to disable or enable Windows 10 password expiration notification
–jeroen