(Apply to all accounts) wmic UserAccount set PasswordExpires=False (Apply to specific local account) wmic UserAccount where Name="user name" set PasswordExpires=False