dbatools is a free PowerShell module with over 300 SQL Server administration, best practice and migration commands included.

Please note that documentation and command names may be out of date while we work furiously towards 1.0


This command copies ALL user objects (tables, stored procs, functions, etc) in ALL system databases, hence the pluralized command name. This is useful for DBA’s who keep their maintenance tasks in system databases, and for the model database.



From PowerShell, execute Get-Help Copy-DbaSysDbUserObjects -Detailed for more information on this function.

Source Code

Want to see the source code? View Copy-DbaSysDbUserObjects.ps1 on GitHub

Related commands