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


Get-DbaPfDataCollectorSetTemplate

Parses Perf Monitor XML templates. Defaults to parsing templates in the dbatools template repository (\bin\perfmontemplates).

Screenshots

dbatools-Get-DbaPfDataCollectorSetTemplate

Examples

Returns information about all the templates in the local dbatools repository.

Get-DbaPfDataCollectorSetTemplate

Allows you to select a template, then deploys it to sql2017 and immediately starts the DataCollectorSet.

Get-DbaPfDataCollectorSetTemplate | Out-GridView -PassThru | Import-DbaPfDataCollectorSetTemplate -ComputerName sql2017 | Start-DbaPfDataCollectorSet

Returns more information about the template, including the full path/filename.

Get-DbaPfDataCollectorSetTemplate | Select-Object *

Author

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

Get-Help

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

Source Code

Want to see the source code? View Get-DbaPfDataCollectorSetTemplate.ps1 on GitHub
 

Related commands