Error Message:
Msg 15099, Level 16, State 1, Line 1
The MUST_CHANGE option cannot be used when CHECK_EXPIRATION is OFF.
Fix/resolution:
Add CHECK_EXPIRATION=ON TO the script or remove MUST_CHANGE from the script
Before:
[sql]
CREATE LOGIN [username] WITH PASSWORD=N’pa@Ssword’ MUST_CHANGE
[/sql]
After:[sql]
CREATE LOGIN [username] WITH PASSWORD=N’pa@Ssword’ MUST_CHANGE, CHECK_EXPIRATION=ON
[/sql]
OR
[sql]
CREATE LOGIN [username] WITH PASSWORD=N’pa@Ssword’ MUST_CHANGE
[/sql]