This applies to the Administrator account. For other users, replace the word Administrator Open cmd and type the following:
net user administrator | findstr /C:expires
WMIC USERACCOUNT WHERE Name='administrator' SET PasswordExpires=FALSE