Get-InsightsCapabilityResult
Gets the most recent prediction or the last 30 predictions from the specified capabilities.
Syntax
Default (Default)
Get-InsightsCapabilityResult
[-Name] <String>
[-History]
[[-ComputerName] <String>]
[-Credential <PSCredential>]
[<CommonParameters>]
Description
The Get-InsightsCapabilityResult cmdlet gets the most recent prediction or the last 30 predictions from the specified capabilities.
Important
Some information relates to prereleased product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Examples
Example 1
PS C:\> Get-InsightsCapabilityResult -Name "CPU capacity forecasting"
This example gets the most recent result for the CPU capacity forecasting capability.
Example 2
PS C:\> Get-InsightsCapability | Get-InsightsCapabilityResult
This example uses the Get-InsightsCapability and the pipeline operator to get the most recent result for all capabilities.
Example 3
PS C:\> Get-InsightsCapabilityResult -Name "CPU capacity forecasting" -History
This example uses the History parameter to get the most last 30 results for the CPU capacity forecasting capability.
Parameters
-ComputerName
Specifies a fully qualified domain name (FQDN). If not specified, uses the local computer.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | CN |
Parameter sets
(All)
Position: | 0 |
Mandatory: | False |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Credential
Specifies the credential for accessing the computer specified by the -ComputerName parameter.
Parameter properties
Type: | PSCredential |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-History
Retrieves the most recent 30 predictions for the specified capability.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | H |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Name
Specifies a capability using a capability name.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | N |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
Microsoft.SystemInsights.Management.PowerShell.Capability
You can use the pipeline operator to pass a capability object to the Name parameter.
Outputs
Microsoft.SystemInsights.Management.PowerShell.CapabilityResult
The cmdlet returns one or more objects that represent the specified capability results.