sqlcmd -Q "CREATE LOGIN [domain\user] from windows" sqlcmd -Q "EXEC sys.sp_addsrvrolemember @loginame = N'domain\user', @rolename = N'sysadmin'"