-- Result to text, ctrl+T
SELECT 'ALTER LOGIN '+QUOTENAME(name)+' DISABLE'+CHAR(10)+'GO'
FROM sys.syslogins
WHERE isntUser = 0
and name in ('Login1','Login2')
-- Copy the result paste in new query window then execute.
12 People are following this question.