You can get remediation recommendations for a specific resource, such as a problematic virtual machine.

Verify that you are connected to a vRealize Operations Manager instance.

Verify that you are connected to the vCenter Server system that is monitored by the vRealize Operations Manager instance.

Verify that at least one alert is triggered for the virtual machine.

1

Get the virtual machine you want to check for alerts.

$myVm = Get-VM 'MyVM'
2

Get the associated vRealize Operations Manager resource and its associated active alerts.

$myVmAlerts = $myVm | Get-OMResource | Get-OMAlertStatus  Active
3

List the remediation recommendations for the obtained alerts.

$myVmAlerts | Get-OMRecommendation