My collection of Powershell scripts SQL Server script_user.ps1 Script a given user, from a given database on a given server.