Resetting the password at first login

expire login changes the login status to expired when a System Security Officer creates or resets a login. The login is then required to change the password on the first login. Valid values are:

By default, this value is turned off and this check is not applied to passwords.

To set the option to require a change of password at first login, enter:

sp_password policy 'set', 'expire login', [ 1 | 0 ]