Author | Chrissy LeMaire (@cl), netnerds.net |
Availability | Windows, Linux, macOS |
Want to see the source code for this command? Check out Get-DbaPfDataCollectorSet on GitHub.
Want to see the Bill Of Health for this command? Check out Get-DbaPfDataCollectorSet.
Gets Performance Monitor Data Collector Set.
Gets Performance Monitor Data Collector Set.
Get-DbaPfDataCollectorSet
[[-ComputerName] <DbaInstanceParameter[]>]
[[-Credential] <PSCredential>]
[[-CollectorSet] <String[]>]
[-EnableException]
[<CommonParameters>]
PS C:\> Get-DbaPfDataCollectorSet
Gets all Collector Sets on localhost.
PS C:\> Get-DbaPfDataCollectorSet -ComputerName sql2017
Gets all Collector Sets on sql2017.
PS C:\> Get-DbaPfDataCollectorSet -ComputerName sql2017 -Credential ad\sqldba -CollectorSet 'System Correlation'
Gets the 'System Correlation' CollectorSet on sql2017 using alternative credentials.
PS C:\> Get-DbaPfDataCollectorSet | Select-Object *
Displays extra columns and also exposes the original COM object in DataCollectorSetObject.
The target computer. Defaults to localhost.
Alias | |
Required | False |
Pipeline | true (ByValue) |
Default Value | $env:COMPUTERNAME |
Allows you to login to servers using alternative credentials. To use:
$scred = Get-Credential, then pass $scred object to the -Credential parameter.
Alias | |
Required | False |
Pipeline | false |
Default Value |
The Collector set name.
Alias | DataCollectorSet |
Required | False |
Pipeline | false |
Default Value |
By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message.
This avoids overwhelming you with "sea of red" exceptions, but is inconvenient because it basically disables advanced scripting.
Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch.
Alias | |
Required | False |
Pipeline | false |
Default Value | False |