Remove-Cluster
VMMonitored
Item
Syntax
Remove-ClusterVMMonitoredItem
[-InputObject <PSObject>]
[-Service <StringCollection>]
[-EventLog <String>]
[-EventSource <String>]
[-EventId <Int32>]
[[-VirtualMachine] <String>]
[-Wait <Int32>]
[-Cluster <String>]
[<CommonParameters>]
Remove-ClusterVMMonitoredItem
[-InputObject <PSObject>]
[-Service <StringCollection>]
[-EventLog <String>]
[-EventSource <String>]
[-EventId <Int32>]
[-VMId <Guid>]
[-Wait <Int32>]
[-Cluster <String>]
[<CommonParameters>]
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
This example removes monitoring on the print spooler service on the virtual machine named VM1.
Optional Parameters
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Type: | Int32 |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Type: | PSObject |
Position: | Named |
Default value: | None |
Accept pipeline input: | True (ByValue) |
Accept wildcard characters: | False |
Type: | StringCollection |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Type: | Guid |
Position: | Named |
Default value: | None |
Accept pipeline input: | True (ByPropertyName) |
Accept wildcard characters: | False |
Type: | String |
Aliases: | VM |
Position: | 0 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Type: | Int32 |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Microsoft.FailoverClusters.PowerShell.Cluster
Inputs
Microsoft.FailoverClusters.PowerShell.ClusterGroup
Inputs
Microsoft.FailoverClusters.PowerShell.ClusterResource
Inputs
Microsoft.FailoverClusters.PowerShell.ClusterVMMonitoredItem
Outputs
None