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