We are using sp_help_revlogin to make login script, but it doesn't enable the login which has sysadmin role. It is very common problem during server migration. We use the this technique to solve the issue.
Workaround: How you can enable the sysadmin role correctly for all the login which has sysadmin role.
This script creates the command in old server which need to execute to the new server.