Author | Chrissy LeMaire (@cl), netnerds.net |
Availability | Windows, Linux, macOS |
Want to see the source code for this command? Check out Start-DbaPfDataCollectorSet on GitHub.
Want to see the Bill Of Health for this command? Check out Start-DbaPfDataCollectorSet.
Starts Performance Monitor Data Collector Set.
Starts Performance Monitor Data Collector Set.
Start-DbaPfDataCollectorSet
[[-ComputerName] <DbaInstanceParameter[]>]
[[-Credential] <PSCredential>]
[[-CollectorSet] <String[]>]
[[-InputObject] <Object[]>]
[-NoWait]
[-EnableException]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
PS C:\> Start-DbaPfDataCollectorSet
Attempts to start all ready Collectors on localhost.
PS C:\> Start-DbaPfDataCollectorSet -ComputerName sql2017
Attempts to start all ready Collectors on localhost.
PS C:\> Start-DbaPfDataCollectorSet -ComputerName sql2017, sql2016 -Credential ad\sqldba -CollectorSet 'System Correlation'
Starts the 'System Correlation' Collector on sql2017 and sql2016 using alternative credentials.
PS C:\> Get-DbaPfDataCollectorSet -CollectorSet 'System Correlation' | Start-DbaPfDataCollectorSet
Starts the 'System Correlation' Collector.
The target computer. Defaults to localhost.
Alias | |
Required | False |
Pipeline | false |
Default Value | $env:COMPUTERNAME |
Allows you to login to $ComputerName using alternative credentials. To use:
$cred = Get-Credential, then pass $cred object to the -Credential parameter.
Alias | |
Required | False |
Pipeline | false |
Default Value |
The name of the Collector Set to start.
Alias | DataCollectorSet |
Required | False |
Pipeline | false |
Default Value |
Accepts the object output by Get-DbaPfDataCollectorSet via the pipeline.
Alias | |
Required | False |
Pipeline | true (ByValue) |
Default Value |
If this switch is enabled, the collector is started and the results are returned immediately.
Alias | |
Required | False |
Pipeline | false |
Default Value | False |
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 |
If this switch is enabled, no actions are performed but informational messages will be displayed that explain what would happen if the command were to run.
Alias | wi |
Required | False |
Pipeline | false |
Default Value |
If this switch is enabled, you will be prompted for confirmation before executing any operations that change state.
Alias | cf |
Required | False |
Pipeline | false |
Default Value |