Book Image

VMware Horizon View 6 Desktop Virtualization Cookbook - Second Edition

By : Ventresco
Book Image

VMware Horizon View 6 Desktop Virtualization Cookbook - Second Edition

By: Ventresco

Overview of this book

If you want a more detailed explanation concerning the implementation of several different core features of VMware Horizon View, this is the book for you. Whether you are new to VMware Horizon View or an existing user, this book will provide you with the knowledge you need to successfully deploy several core features and get introduced to the latest features of version 6.0 as well.
Table of Contents (13 chapters)
4
4. Managing VMware Horizon View with PowerCLI
12
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...