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-DbaPfDataCollector

Gets Performance Monitor Data Collectors.

Screenshots

dbatools-Get-DbaPfDataCollector

Examples

Gets all Collectors on localhost.

Get-DbaPfDataCollector

Gets all Collectors on sql2017.

Get-DbaPfDataCollector -ComputerName sql2017

Gets all Collectors for ‘System Correlation’ Collector on sql2017 and sql2016 using alternative credentials.

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

Gets all Collectors for ‘System Correlation’ Collector.

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

Author

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

Get-Help

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

Source Code

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

Related commands