sqldbawithabeard.com
Export SQL User Permissions to T-SQL script using PowerShell and dbatools
There are times when DBA’s are required to export database user permissions to a file. This may be for a number of reasons. Maybe for DR purposes, for auditing, for transfer to another databa…