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

Refreshing a linked-clone desktop or pool


The Send-LinkedCloneRefresh command is used to refresh 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 refresh at the indicated time. In addition, the operation will continue even if an error occurs but will not force users to log off:

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

    Send-LinkedCloneRefresh -Machine_id (Get-DesktopVM -Name "ViewLC0001").machine_id -schedule "2014-07-25 18:00"
    

    This command will refresh only the desktop named ViewLC0001.

How it works…

When using the Send-LinkedCloneRefresh command to refresh an entire pool, the command requires us to specify each desktop within the pool...