We recently upgraded from Horizon View 7.0 to 7.12. We have a Powershell script that utilized VMware.View.Broker module. For some reason, the Get-Monitor cmdlet no longer works. So I am using the vdmadmin.exe to get the status of the View monitors. I was successful at all monitors except the CBMonitor.
vdmadmin -H -list -monitorid CBMonitor -xml -n
<?xml version='1.0' encoding='utf-8'?>
<MonitorIds>
<id>CON01</id>
<id>CON02</id>
</MonitorIds>
However, this is the only monitor that fails to bring back the details of any of its ids. The following command fails with the stated error below:
vdmadmin -H -monitorid CBMonitor -instanceid $id -xml -n
vdmadmin : Failed to perform operation: Cannot access broker management service.
At line:1 char:1
+ vdmadmin -H -monitorid CBMonitor -instanceid $id -xml -n
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Failed to perfo...gement service.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Check View Connection Broker is version 4.0 or later.
Any ideas?