Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Remove-ClusterVMMonitoredItem

Remove-ClusterVMMonitoredItem

microsoft.failoverclusters.powershell.dll

Synopsis

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

Syntax

Remove-ClusterVMMonitoredItem [-VirtualMachine] [-Cluster] [-EventId] [-EventLog] [-EventSource] [-InputObject] [-Service] [<CommonParameters>]

Detailed 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.

Parameters

-Cluster <String>

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.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-EventId <Int32>

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

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-EventLog <String>

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

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-EventSource <String>

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

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-InputObject <PSObject>

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.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-Service <StringCollection>

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

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-VirtualMachine <String>

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.

Aliases

None

Required?

false

Position

1

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type

Microsoft.FailoverClusters.PowerShell.Cluster
Microsoft.FailoverClusters.PowerShell.ClusterGroup
Microsoft.FailoverClusters.PowerShell.ClusterResource
Microsoft.FailoverClusters.PowerShell.ClusterVMMonitoredItem

Return Type

None

Notes

None

Examples

Example 1

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

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

Example 2

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

PS C:\>Remove-ClusterVMMonitoredItem -VirtualMachine VM1 -Service spooler

Online Version
Add-ClusterVMMonitoredItem
Get-ClusterVMMonitoredItem
Reset-ClusterVMMonitoredState