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


Start-DbaPfDataCollectorSet

Starts Performance Monitor Data Collector Set.

Screenshots

dbatools-Start-DbaPfDataCollectorSet

Examples

Attempts to start all ready Collectors on localhost.

Start-DbaPfDataCollectorSet

Attempts to start all ready Collectors on localhost.

Start-DbaPfDataCollectorSet -ComputerName sql2017

Starts the ‘System Correlation’ Collector on sql2017 and sql2016 using alternative credentials.

Start-DbaPfDataCollectorSet -ComputerName sql2017, sql2016 -Credential (Get-Credential) -CollectorSet ‘System Correlation’

Starts the ‘System Correlation’ Collector.

Get-DbaPfDataCollectorSet -CollectorSet ‘System Correlation’ | Start-DbaPfDataCollectorSet

Author

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

Get-Help

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

Source Code

Want to see the source code? View Start-DbaPfDataCollectorSet.ps1 on GitHub
 

Related commands