dbatools is a free PowerShell module with over 200 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


Import-SqlSpConfigure

This command updates sp_configure settings on destination server. Source input can be a file or another SQL Server.

Examples

To import directly from one server to another using integrated (Windows) authentication to login to both servers

To import directly from one server to another using SQL authentication

To import from file using SQL authentication

Get-Help

From PowerShell, execute Get-Help Import-SqlSpConfigure -Detailed for more information on this function.

Source Code

Want to see the source code? View Import-SqlSpConfigure.ps1 on GitHub
 

Related commands