Preview:
#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.
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter