how to set local user password never expires in windows server 2016 code example Example: command to set user password to never expire in windows NET USER {username} /expires:never