Get-InsightsCapabilityAction
Gets the actions for the specified capabilities.
Syntax
Get-InsightsCapabilityAction
[-Name] <String>
[[-ComputerName] <String>]
[-Credential <PSCredential>]
[<CommonParameters>]
Description
The Get-InsightsCapabilityAction cmdlet gets the actions for 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-InsightsCapabilityAction -Name "CPU capacity forecasting"
This example gets all actions for the CPU capacity forecasting capability.
Example 2
PS C:\> Get-InsightsCapability | Get-InsightsCapabilityAction
This example uses the Get-InsightsCapability cmdlet and the pipeline operator to get all actions for all available capabilities.
Parameters
-ComputerName
Specifies a fully qualified domain name (FQDN). If not specified, uses the local computer.
Type: | String |
Aliases: | CN |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Credential
Specifies the credential for accessing the computer specified by the -ComputerName parameter.
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Specifies a capability using a capability name.
Type: | String |
Aliases: | N |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
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.CapabilityAction
The cmdlet returns one or more objects that represent the specified capability actions.
Related Links
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應