How to Create an Update Task to be Performed at a Scheduled Time in Provisioning Services

How to Create an Update Task to be Performed at a Scheduled Time in Provisioning Services

book

Article ID: CTX140210

calendar_today

Updated On:

Description

This article explains how to create an update task to be performed at a scheduled time.
Note: This article is part 3 of the three articles on how to manage vDisk for automatic updates.

  1. CTX137757 – How to Create a Designated Update Virtual machine and adding a Host Connection to vDisk Update Management

  2. CTX140209 – How to Add a Managed vDisk to the vDisks Node Under vDisk Update Management

  3. CTX140210 – How to Create an Update Task to be Performed at a Scheduled Time in Provisioning Services


    Instructions

    Following are the steps to create an update task to be performed at a scheduled time:

    1. Right-click the Tasks node, select Add Task… and click Next.

      User-added image

    1. Enter a Name for the task and enter an optional Description of the task to be performed.

      User-added image

      Note: The vDisk must already be configured to receive its Windows Updates from a WSUS Server before beginning this procedure. If not, start vDisk in Private Mode and make the necessary changes before allowing this task to run. Shutdown vDisk and place it back in Standard Mode. Refer to Citrix Documentation - Creating and Configuring ESD Update VMs for details regarding the steps to set up the vDisk for WSUS or consult Microsoft.

    1. Schedule the task according to your preference (For example, if you always want to run the task manually, select None), and click Next.

      User-added image

    1. Click Add to select the managed vDisk(s) this task applies to.

      User-added image

    1. Select the vDisk(s) you want this task to update and click OK.
      The following screen shot shows the vDisk listed along with the host and the VM associated with it for auto-updates. This implies that each managed vDisk must have a unique update VM associated with it. Remember this when naming your Update VMs in the early steps of this article. Consider using a name that tells you which vDisk it is for. If you had missed adding a vDisk, you can add it here using the Add Managed vDisk button. You will be directed to this step after completion.

      Click OK and then Next on the Update Task Wizard screen.

      User-added image

    1. Select the appropriate ESD task from the list.
      Note: In this article, WSUS is selected.

      User-added image

      Note: If selecting None as your option, you must create and install a batch file called update.bat. Place this file in the product folder of your Provisioning Services software under C:\program files\citrix\provisioning services
      update.bat should be placed on the target device.

      Update.bat can contain anything you want. If it is missing, you will see an error in the Provisioning Services Server event log stating that update.bat was missing and an error will be returned, also the automatic versioning will not take place. If using WSUS or SCCM updates, update.bat is not required. None is generally selected when users have a Windows Scheduled Task configured that they want to run when the task is run.

    1. In the following screen shot, there are optional scripts you can specify to run at specific times during the task execution as per the information in Citrix Documentation - Creating and Managing Tasks.
      Note: For this article, leave the optional scripts blank.

      User-added image

      Note: If using the optional scripts, place the scripts in a new folder called Scripts created under C:\program files\citrix\provisioning services\scripts (or Program Files (x86) for 64-bit machines).

      User-added image

    1. Select the Access Mode from the given option for the new vDisk version being created. Click Next.

      User-added image

    1. Review the information. If satisfactory, click Finish.

      User-added image

    1. In the right pane, if you right-click the Task you just created, you will see the following options.
      Using Properties, you can modify your current settings. This includes your scheduled time and frequency for the task to run. You can also choose to run the task immediately.

      User-added image

    Issue/Introduction

    This article explains how to create an update task to be performed at a scheduled time.