I have tried this:
If you decide to use a query, you can use code similar to this
USE Master
GO
ALTER LOGIN test_must_change WITH PASSWORD = ‘samepassword’
GO
ALTER LOGIN test_must_change WITH
CHECK_POLICY = OFF,
CHECK_EXPIRATION = OFF;
But it gives me error
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '‘'.
Msg 15151, Level 16, State 1, Line 1
Cannot alter the login 'MYPASSWORD', because it does not exist or you do not have permission.