Remove-InsightsCapabilityAction

Removes the action(s) associated with a capability.

Syntax

Remove-InsightsCapabilityAction
      [-Name] <String>
      [-AllActions]
      [[-ComputerName] <String>]
      [-Credential <PSCredential>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-InsightsCapabilityAction
      [-Name] <String>
      [-Type] <PredictionStatus>
      [[-ComputerName] <String>]
      [-Credential <PSCredential>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-InsightsCapabilityAction cmdlet removes the action(s) associated with a capability.

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:\> Remove-InsightsCapabilityAction -Name "CPU capacity forecasting" -Type OK, Warning

This example removes the OK and Warning actions for the CPU capacity forecasting capability.

Example 2

PS C:\> Remove-InsightsCapabilityAction -Name "CPU capacity forecasting" -AllActions

This example removes all actions for the CPU capacity forecasting capability.

Parameters

-AllActions

Removes all actions associated with a capability.

Type:SwitchParameter
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
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

-Type

Specifies the prediction status of the capability. If the capability outputs this status, the action associated with this status will be automatically invoked.

Type:PredictionStatus
Accepted values:None, Ok, Warning, Error, Critical
Position:2
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
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

None