137k views
4 votes
Which of the following PowerShell cmdlets correctly configures VM Monitoring for the DHCPClient service on the VM named VM42?

A) Add-ClusterVMMonitoredItem "VM42" "DHCPClient"

B) Add-ClusterVMMonitoredItem -VirtualMachine "VM42" -Service DHCPClient

C) Set-MonitoredItem -VirtualMachine "VM42" -Service DHCPClient

D) Add-ClusterVMMonitoredItem -Host "VM42" -Service DHCPClient

1 Answer

3 votes

Final answer:

The correct PowerShell cmdlet to configure VM Monitoring for the DHCPClient service on VM42 is 'Add-ClusterVMMonitoredItem -VirtualMachine "VM42" -Service DHCPClient'.

Step-by-step explanation:

To correctly configure VM Monitoring for the DHCPClient service on a VM named VM42, you would use the following PowerShell cmdlet:

Add-ClusterVMMonitoredItem -VirtualMachine "VM42" -Service DHCPClient

This cmdlet adds a service or application to be monitored for a specified virtual machine within a failover cluster. The correct usage is specifying the virtual machine name with the -VirtualMachine parameter and the service to be monitored with the -Service parameter.

User Leigh  McCulloch
by
8.3k points