• You could try:

    Right-click on db name, select Tasks -> Generate Scripts

    There you have a number of scripting options including scripting out Users, Roles, and Schemas. There is an advanced options tab that will give you even more choices of what to put in the script output.