VMware Horizon Community
BenFB
Virtuoso
Virtuoso
Jump to solution

Script to find linked clones with pending tasks

During Horizon View upgrades it's recommend to ensure that there are no pending Composer operations. Is there a way to see any pending operations so they can be paused or cancelled (e.g. a scheduled recompose set to run on user log off)?

0 Kudos
1 Solution

Accepted Solutions
BenFB
Virtuoso
Virtuoso
Jump to solution

techguy129 I found a simpler way to do this using View PowerCLI.

Get-DesktopVM -ComposerTask attachUdd,detachUdd,mkChkPoint,rebalance,refresh,replaceUdd,resync | select Name,pool_id,composerTask

View solution in original post

0 Kudos
2 Replies
techguy129
Expert
Expert
Jump to solution

For upgrades, we disable provisioning on our pools first.

You will want to query the MachineBase data object:

https://vdc-repo.vmware.com/vmwb-repository/dcr-public/f004a27f-6843-4efb-9177-fa2e04fda984/5db23088...

Here is a blog with someone using the command with PowerCLI 6.5 R1

https://www.retouw.nl/powercli/talking-powercli-against-horizon-view-basics/

0 Kudos
BenFB
Virtuoso
Virtuoso
Jump to solution

techguy129 I found a simpler way to do this using View PowerCLI.

Get-DesktopVM -ComposerTask attachUdd,detachUdd,mkChkPoint,rebalance,refresh,replaceUdd,resync | select Name,pool_id,composerTask

0 Kudos