Remove-ClusterVMMonitoredItem

Remove-ClusterVMMonitoredItem

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

Syntax

Parameter Set: VirtualMachine
Remove-ClusterVMMonitoredItem [[-VirtualMachine] <System.String> ] [-Cluster <System.String> ] [-EventId <System.Int32> ] [-EventLog <System.String> ] [-EventSource <System.String> ] [-InputObject <System.Management.Automation.PSObject> ] [-Service <System.Collections.Specialized.StringCollection> ] [-Wait <System.Int32> ] [ <CommonParameters>]

Parameter Set: VMId
Remove-ClusterVMMonitoredItem [-Cluster <System.String> ] [-EventId <System.Int32> ] [-EventLog <System.String> ] [-EventSource <System.String> ] [-InputObject <System.Management.Automation.PSObject> ] [-Service <System.Collections.Specialized.StringCollection> ] [-VMId <System.Guid> ] [-Wait <System.Int32> ] [ <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<System.String>

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-EventId<System.Int32>

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-EventLog<System.String>

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-EventSource<System.String>

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-InputObject<System.Management.Automation.PSObject>

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true(ByValue)

Accept Wildcard Characters?

false

-Service<System.Collections.Specialized.StringCollection>

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-VirtualMachine<System.String>

Aliases

VM

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-VMId<System.Guid>

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

-Wait<System.Int32>

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

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

Outputs

The output type is the type of the objects that the cmdlet emits.

  • 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

Related topics

Community Additions

ADD
Show: