Remove-ClusterVMMonitoredItem

Removes monitoring of a service or event that is currently being monitored on a virtual machine.

Syntax

Remove-ClusterVMMonitoredItem
      [[-VirtualMachine] <String>]
      [-Cluster <String>]
      [-EventId <Int32>]
      [-EventLog <String>]
      [-EventSource <String>]
      [-InputObject <PSObject>]
      [-Service <StringCollection>]

Description

The Remove-ClusterVMMonitoredItem cmdlet removes monitoring of a service or event that is currently being monitored. After removal, if the service fails or the event occurs, the system will no longer take an action, such as restarting the virtual machine.

Examples

Example 1

PS C:\>Get-ClusterVMMonitoredItem -VirtualMachine VM1 | Remove-ClusterVMMonitoredItem -VirtualMachine VM1

This example removes all of the items being monitored on the virtual machine named VM1.

Example 2

PS C:\>Remove-ClusterVMMonitoredItem -VirtualMachine VM1 -Service spooler
http://go.microsoft.com/fwlink/?LinkId=216240

This example removes monitoring on the print spooler service on the virtual machine named VM1.

Parameters

-Cluster

Specifies the name of the cluster on which to run this cmdlet. If the input for this parameter is . or it is omitted, then the cmdlet runs on the local cluster.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-EventId

Specifies the event identifier (ID) of the Event Tracing for Windows (ETW) event to be removed from monitoring.

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-EventLog

Specifies the event log of the event to be removed from monitoring.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-EventSource

Specifies the event source of the event to be removed from monitoring.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Specifies the cluster on which to run the cmdlet, the clustered virtual machine from which to remove monitoring, or the clustered virtual machine monitored item object to stop monitoring.

Type:PSObject
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Service

Specifies the name of the service to be removed from monitoring.

Type:StringCollection
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VirtualMachine

Specifies the name of the clustered virtual machine from which to remove monitoring. When this parameter is specified, this cmdlet must be run on one of the host cluster nodes, or else the Cluster parameter must also be specified.

Type:String
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.FailoverClusters.PowerShell.Cluster

Microsoft.FailoverClusters.PowerShell.ClusterGroup

Microsoft.FailoverClusters.PowerShell.ClusterResource

Microsoft.FailoverClusters.PowerShell.ClusterVMMonitoredItem

Outputs

None