Set a user's password to non-expiring via CMD

article #731, updated 952 days ago

NET USE does not appear to be able to set a user’s password to non-expiring. However, we do have this:

WMIC USERACCOUNT WHERE "Name='username'" SET PasswordExpires=FALSE

Categories:   Command Line   Windows OS-Level Issues