set maximum password age command line remotely on server code example Example: command to set user password to never expire in windows NET USER {username} /expires:never