Citrix Provisioning

Using Windows Task Scheduler to create vDisk update task scripts

Windows Task Scheduler can be used to create vDisk Update task scripts. These scripts are associated with a task when the Update Task Wizard is run. They can be modified later on the Scripts tab of the vDisk Update Task Properties dialog.

Note: Features of the Task Scheduler are used to run the batch file/script as the desired user.

The following types of task scripts can be created:

  • Pre-update script - executes before the start of any update task process.
  • Pre-startup script - executes just before starting the virtual machine.
  • Post-shutdown script - executes just after the virtual machine shuts down.
  • Post update script - executes after the update task process completes.

Scripts are stored in a Scripts folder, which is a subfolder of the product installation folder.

A sample batch file to boot target devices:

Mcli SetupConnection /p server=192.168.1.1 Mcli Run Boot /p deviceMac=00-00-00-00-00-11 Mcli SetupConnection /p server=192.168.1.1 Mcli Run Boot /p deviceMac=00-00-00-00-00-11 Mcli Run Boot /p deviceMac=00-00-00-00-00-22 Mcli Run Boot /p deviceMac=00-00-00-00-00-33 Mcli Run Boot /p deviceMac=00-00-00-00-00-44 Mcli Run Boot /p siteName=Boston collectionName=Sales

A sample batch file to check for vDisk updates:

Mcli SetupConnection /p server=192.168.1.1 Mcli Run ApplyAutoUpdate /p siteName=Boston

Note: When configuring the server connection using the Mcli-Run SetupConnection command, do not specify the user, password, or domain. These values are not protected in the batch file/script.

Using Windows Task Scheduler to create vDisk update task scripts

In this article