#elevated command prompt, all accounts
wmic UserAccount set PasswordExpires=False

#elevated command prompt, particular accounts
wmic UserAccount where Name="user name" set PasswordExpires=False
#Substitute user name in the command above with the actual user name of the local account.