PowerShell Logo Small

Remove-ClusterVMMonitoredItem



This is the built-in help made by Microsoft for the command 'Remove-ClusterVMMonitoredItem', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

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>] [<CommonParameters>]



Search powershellhelp.space

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.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?linkid=321059
Add-ClusterVMMonitoredItem
Get-ClusterVMMonitoredItem
Reset-ClusterVMMonitoredState

REMARKS

<

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



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