How do I revert the MUST_CHANGE in this SQL Statement? I executed

SELECT N'ALTER LOGIN ' + QUOTENAME(name) 
  + N' WITH PASSWORD = N'''' MUST_CHANGE, CHECK_POLICY = ON;' 
  FROM sys.sql_logins 
  --WHERE is_policy_checked = 0;


But I don't want the MUST_CHANGEoption on the login.

Did this query actually change anything or is this just a simple select?
That query didn't change anything so you don't need to revert anything.

That is just a simple select generating an ALTER LOGINstatement.

If you didn't execute the resulting statement nothing has been changed.