VMware Cloud Community
N4N0S
Contributor
Contributor

Import wmware.view.broker

Hi!

I have powercli 6.5.1 and I need to install the module "VMware.View.Broker" But I get the following error:

N4N0S_0-1622819455500.png

Inside the file "VMware.View.Broker.psm1"

N4N0S_1-1622819496600.png

I don't know if adding the variable to the method solves it, that is:
[VMware.Hv.DesktopId] new_manualpool ($name, $vcid, $vmids, $ag)

Any suggestions?

Reply
0 Kudos
5 Replies
LucD
Leadership
Leadership

Afaik VMware.View.Broker is a PSSnapin, not a module.
Where did you get that module from?

Which Horizon version are you trying to use this against?
Why such an old PowerCLI version?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
N4N0S
Contributor
Contributor

The only thing I can't change for now is the Horizon version (7.6). What version of powercli do you recommend?
The module thing, I tried to follow these steps:

https://github.com/9whirls/VMware.View.Broker

I need to be able to connect to Horizon through powercli and disconnect sessions. What is the module that has all these functions?

 

Reply
0 Kudos
LucD
Leadership
Leadership

That module is a 3th party module it seems.
If you are having a problem I suggest opening an Issue on that repo.

Have a look at the PowerCLI-Horizon compatibility matrix.

Most PowerCLI-Horizon scripts nowadays seem to be using the VMware.HV.Helper module.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
N4N0S
Contributor
Contributor

I followed the steps they mention  VMware.HV.Helper 

I ask you, now how could I disconnect a session?

Reply
0 Kudos
LucD
Leadership
Leadership

Reply
0 Kudos