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

Gets Performance Monitor Data Collector Set.

Screenshots

dbatools-Get-DbaPfDataCollectorSet

Examples

Gets all collector sets on localhost.

Get-DbaPfDataCollectorSet

Gets all collector sets on sql2017.

Get-DbaPfDataCollectorSet -ComputerName sql2017

Gets the ‘System Correlation’ collector set on sql2017 using alternative credentials.

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

Displays extra columns and also exposes the original COM object in DataCollectorSetObject.

Get-DbaPfDataCollectorSet | Select *

Author

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

Get-Help

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

Source Code

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

Related commands