Book Image

VMware Horizon View 6 Desktop Virtualization Cookbook

By : Jason Ventresco
Book Image

VMware Horizon View 6 Desktop Virtualization Cookbook

By: Jason Ventresco

Overview of this book

Table of Contents (18 chapters)
VMware Horizon View 6 Desktop Virtualization Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
4
Managing VMware Horizon View with PowerCLI
Index

Rebalancing a linked-clone desktop pool


The Send-LinkedCloneRebalance command is used to rebalance either a specific linked-clone desktop or an entire desktop pool.

How to do it…

  1. The following example command selects all the desktops in the FinanceLC1 pool and schedules them to rebalance at the indicated time:

    Get-Pool -Pool_id "FinanceLC1" | Get-DesktopVM | Send-LinkedCloneRebalance -schedule "2014-07-25 18:00"
    
  2. To rebalance just a single desktop, you can use a simpler version of the command that requires only the machine ID and the schedule:

    Send-LinkedCloneRebalance -Machine_id (Get-DesktopVM -Name "ViewLC0001").machine_id -schedule "2014-07-25 18:00"
    
  3. This command will rebalance only the desktop named ViewLC0001.

How it works…

The Send-LinkedCloneRebalance command uses the same format as the other linked-clone maintenance commands. All that is required is the desktop pool ID and the schedule. The command also supports the StopOnError and ForceLogoff options.