Thor Logo dbatools

ServerRole

Copy-DbaServerRole

the dbatools team + Claude

Copy-DbaServerRole View Source the dbatools team + Claude Windows, Linux, macOS Synopsis Migrates custom server roles and their permissions between SQL Server instances Description Copies user-defined server roles from the source server to one or more destination servers. This is essential when migrating SQL Server instances that use custom server roles for granular permission management, or when standardizing security configurations across multiple environments. Only custom (user-defined) server roles are copied by default.

Read more