Thank this author by sharing:
By Additional Articles,
Error with Create Login Script
How can I script logins nightly?
Compare the logins and users on two instances and generate a TSQL script to make them the same.
Script Removal of Logins - SQL 2005
Sql Script to change the Login Permission
As a member of SQLServerCentral, you get free access to loads of fresh content: thousands
of articles and SQL scripts, a library of free eBooks, a weekly database news roundup,
a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals
that makes it such a success.