The VMware View dashboard doesn't offer a built-in way to schedule a desktop pool refresh. As an administrator, you'll often want to schedule these types of activities for after business hours or during maintenance windows. Here's a PowerCLI script that lets you schedule VMware View pool refreshes on a one-time or periodic basis.<!--more-->

Here's the whole script. Lines are marked with a number and parenthesis to avoid confusion with text wrapping.
<pre>1) Add-PSSnapin VMware.View.Broker
2) Connect-VIServer &lt;your View Connection Server hostname&gt;
3) $a = get-date ((get-date).AddMinutes(2)) -format "yyyy-MM-%d HH:mm"
4) Get-Pool -pool_id &lt;your pool ID&gt; | Get-DesktopVM | Send-LinkedCloneRefresh -schedule $a</pre>
Let's step through each line of the script and dig into what it does. Since this is a Powershell script, the first line needs to import the VMware View snapins for Powershell.