set a local user account password to never expire windows 10 code example Example: command to set user password to never expire in windows NET USER {username} /expires:never