Skip to content
Menu
Know Citrix
  • About me
  • Miscellaneous
    • SSL certificates
Know Citrix

Citrix Virtual Desktop Agent Upgrade

Posted on May 8, 2020October 31, 2021
0
(0)

Somewhere down the line, Citrix Admins need to upgrade their Citrix Site from one version to another, Example, from XenDesktop 71.5 LTSR to CVAD 1912 LTSR. For Citrix site upgrade, we have to mount the product ISO in Citrix server and run the setup file. But What about VDIs?

Based on your company’s VDA usage, you may have hundreds to thousands of VDIs in your company. How do you upgrade VDA agent on all those VDIs? I was tasked with same upgrade activity recently. Citrix has InstallVDA.bat and UninstallVDA.bat files in SetupFilePath\Support\AdDeploy folder. But I didnt get positive results using those scripts. So I ended up writing my own script to do it.

In order to use the script, you have to:

  • Download VDAWorkstationSetup_1912.exe from citrix downloads page. This is a standalone VDA agent installer.
  • Customize and copy install.bat, remove.bat and VDAWorkstationSetup_1912.exe to a network share.
  • Run VDA upgrade.ps1 file. It will copy install.bat, remove.bat, and VDAWorkstationSetup_1912.exe from network share to c:\temp on every VDI in the list.

How does it work

  • Creates Scheduled tasks – One for uninstalling existing VDA agent and another for installing new VDA agent.
  • Executes VDAUninstall scheduled task first. This scheduled task runs after 3 minutes it is created. Once started, it runs remove.bat file and restarts the VDA.
  • After reboot, it runs VDAInstall scheduled task. This scheduled task runs install.bat file. No user login is required.
  • After installation is complete, it deletes install.bat, remove.bat, VDAWorkstationSetup_1912.exe files from c:\temp and also deletes VDAuninstall, VDAInstall scheduled tasks.

Checkout my GitHub page for scripts https://github.com/ChayScripts/Citrix-VDA-Upgrade-Scripts

Rate this article

Categories

  • About Home Lab (2)
  • Ansible (1)
  • Architecture – XA and XD (21)
    • Netscaler Architecture (9)
  • AWS (2)
  • Azure (10)
    • Azure Definitions (7)
  • Best Practices (14)
  • Citrix Cloud (6)
    • Workspace Environment Management WEM (1)
  • Citrix Managed Desktops (1)
  • citrix ports (1)
  • Citrix Provisioning (18)
  • Citrix Provisioning Issues (4)
  • Citrix Tools and Scripts (15)
  • Definitions (9)
  • Downloads (1)
  • General Citrix Information (29)
  • Get Started (19)
  • IMP Posts (15)
  • Legacy Citrix Software (1)
  • My TroubleShooting (62)
  • NetScaler (57)
    • GSLB (2)
  • Other Citrix softwares (1)
  • PowerShell (2)
  • Prerequisites (6)
  • Scripts/Automation (7)
  • Tech Articles (13)
  • Terminology (4)
  • Version Differences (5)
  • Why Prerequisites (1)
  • XenApp 5 (38)
  • XenApp 6 (22)
  • XenApp 6.5 (32)
  • XenApp and XenDesktop 7.X (88)
  • XenApp Installation Scripts (3)
  • XenApp Migration (5)
  • XenApp5 Issues (1)
  • XenDesktop 5.X (27)
  • XenDesktop 7.X Issues and troubleshooting (10)
  • XenMobile (1)
  • XenServer 6 (57)

RSS Updates from Citrix Blogs

  • Overcoming observed challenges when adopting a zero trust architecture January 25, 2023
    Zero trust has become a crucial component in the cybersecurity strategy of organizations everywhere. More and more enterprises are finding themselves turning toward zero trust architecture to keep their data, infrastructure, and other assets safe. As a result, this concept … The post Overcoming observed challenges when adopting a zero trust architecture first appeared on […]
    James Schulman
  • Citrix Endpoint Management now supports IdP enrollment for MAM January 20, 2023
    At the start of every year, many people make resolutions to help them reach personal and professional goals. This year, the Citrix Endpoint Management team is focusing on enhancing our agility and regularly providing new features for our customers. We … The post Citrix Endpoint Management now supports IdP enrollment for MAM first appeared on […]
    Chetan Thakker
©2023 Know Citrix | Powered by WordPress and Superb Themes!