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


Copy-DbaXESessionTemplate

Copies non-Microsoft templates from our template repository (\bin\xetemplates) to $home\Documents\SQL Server Management Studio\Templates\XEventTemplates.

Useful for when you want to use the SSMS GUI.

Screenshots

dbatools-Copy-DbaXESessionTemplate

Examples

Copies non-Microsoft templates from our template repository (\bin\xetemplates) to $home\Documents\SQL Server Management Studio\Templates\XEventTemplates.

Copy-DbaXESessionTemplate

Copies your templates from C:\temp\xetemplates to $home\Documents\SQL Server Management Studio\Templates\XEventTemplates.

Copy-DbaXESessionTemplate -Path C:\temp\xetemplates

Author

This command was created by Chrissy LeMaire. You can find Chrissy on Twitter.

Get-Help

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

Source Code

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

Related commands