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


Stop-DbaPfDataCollectorSet

Stops Performance Monitor Data Collector Set.

Screenshots

dbatools-Stop-DbaPfDataCollectorSet

Examples

Attempts to stop all ready Collectors on localhost.

Stop-DbaPfDataCollectorSet

Attempts to stop all ready Collectors on localhost.

Stop-DbaPfDataCollectorSet -ComputerName sql2017

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

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

Stops the ‘System Correlation’ Collector.

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

Author

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

Get-Help

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

Source Code

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

Related commands