RDS VDI Deployment - Disabling RD Personal Virtual Desktop Patching

Applicable for Windows Server 2012 and Windows Server 2012 R2

Overall listing of Remote Desktop Services Articles

In Windows Server 2012, we introduced the personal virtual desktop patching feature. This feature is enabled by default.

Once the administrator creates a Personal Desktop pool, the RD Connection Broker will enable the patching feature (Windows Updates will be installed when available) as follows:

  • Creates a default schedule to wake up the PD at 3:00 am to check, download and allow the Windows Updates to be installed.
  • Saves the PDs if the updates were installed successfully, or failed  or if the amount of time allotted to install was reached (will log events in all cases).
  • Creates a new schedule to wake up the PD in 24 h
  • Even if the schedule is deleted using the PowerShell cmdlet, it will get created once the PD gets rebooted.

There is no easy way to disable it nor to opt out of it at collection creation time or in the deployment settings (i.e. UI option, PS cmdlet etc.).

We have a workaround to disable the PD patching feature that can be applied on the RD Connection Broker, if the administrator chose so. Here are the steps to follow:

  1. Set to non-zero the following  registry key: HKLM\System\CurrentControlSet\Services\Tssdis\Parameters               

    DisablePersonalVMTasks (REG_DWORD)
  2.  On the RD Connection Broker box, download PowerShell module from the Script Center   
  3. To delete tasks for all collections, open a PowerShell window with administrative permissions:
    • Import-module DeleteTasks.ps1
    • Run command Delete-PDTasks