CJBarnard
Contributor
Contributor

Recompose Horizon Desktop Pools via PowerCLI

Jump to solution

I have been trying to find a way to recompose our VDI Pools via PowerCli and find only references to old deprecated PowerCli commands.

Does anyone know how to kick off a recompose with the current version of PowerCli?

1 Solution

Accepted Solutions
LucD
Leadership
Leadership

You can use the Connect-HVServer cmdlet. See also Automating VMware Horizon 7 with VMware PowerCLI 6.5

Once connected call the Desktop_Recompose method.

There are several examples on the usage of the API in the HV.Helper module


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

View solution in original post

6 Replies
LucD
Leadership
Leadership

You can use the Connect-HVServer cmdlet. See also Automating VMware Horizon 7 with VMware PowerCLI 6.5

Once connected call the Desktop_Recompose method.

There are several examples on the usage of the API in the HV.Helper module


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

View solution in original post

CJBarnard
Contributor
Contributor

Thanks for pointing me in the right direction.

0 Kudos
rseekell
Enthusiast
Enthusiast

In the HV.Helper module on GitHub, you will find many useful cmdlets not found in the built-in module for Horizon.  One of these is Start-HVPool -Recompose.  Check it out, and I can explain more if you need it.  Here is my example:

Start-HVPool -Pool $pool -Recompose -StartTime "10-30-17 4:00PM" -LogoffSetting WAIT_FOR_LOGOFF -StopOnFirstError $true -ParentVM "vdi-parent" -SnapshotVM "10-30-17"

butlpau02
Contributor
Contributor

Hi - slightly off topic - can anyone tell me where to find the Last Recompose Date of a VM from the Get-HVPOOL ? 

Can't seem find it.  Thanks.

0 Kudos
natixis_it
Enthusiast
Enthusiast

Is it normal that using Connect-HVServer takes a long time to connect.  For me it takes at least 2 minutes.

0 Kudos
LucD
Leadership
Leadership

No, not really.

Perhaps a network trace (WireShark ?) can shed some light where the delay is happening?


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

0 Kudos