PowerShell Script to Deploy / Upgrade Citrix Receiver

Please refer to the steps below on how to use PowerShell Script to Deploy / Upgrade Citrix Receiver in Windows 7 x64 Machines

  1. Please download Citrix Receiver 4.9 LTSRI did try to install Citrix Receiver 4.12 but obviously it seem like having bug with Windows 7 and cannot be installed successfully
  2. Use the following PowerShell Script to detect whether Citrix Receiver is installed
#Verify Whether Citrix Receiver is installed
if (!(Test-Path "HKLM:\SOFTWARE\Wow6432Node\Citrix")) {
Write-Host -ForegroundColor RED "ICA Client is NOT Installed"
#Install Citrix Online Plug In
cmd /c "\\192.168.1.201\CITRIX$\CitrixOnlinePluginFull.exe /silent"
}

If it is NOT installed previously, it will install Citrix Online Plugin 12.3 Update 4 silently from Network Share Driver which had been End of Support (EOL) to simulate the upgrade from Citrix Online Plugin 12.3 U4 to Citrix Receiver 4.9 LTSR

  1. Use the following PowerShell Script to detect whether Citrix Receiver is installed and the version is less than 12.4 (Citrix Online Plugin = 12.3)
if ((Test-Path "HKLM:\SOFTWARE\Wow6432Node\Citrix") -and `
((Get-ItemProperty "HKLM:\SOFTWARE\Wow6432Node\Citrix\PluginPackages\XenAppSuite\ICA_Client").version) -lt "12.4") {
#Version of Installed Citrix ICA Client
Write-Host -ForegroundColor Green "Citrix ICA is installed"+ ((Get-ItemProperty "HKLM:\SOFTWARE\Wow6432Node\Citrix\PluginPackages\XenAppSuite\ICA_Client").version)
#Upgrade Existing 12.3 to 4.9 LTSR
cmd /c "\\192.168.1.201\CITRIX$\CitrixReceiverLTSR.exe /silent /RCU"
}

When the Script run silently, it will remove the installed Citrix Online Plugin 12.3 and install Citrix Receiver 4.9 LTSR Automatically

  1. Assign the PowerShell Script as Computer Startup Script in AD to install / upgrade to Citrix Receiver 4.9 in Windows 7 x64 machines
#Verify Whether Citrix Receiver is installed
if (!(Test-Path "HKLM:\SOFTWARE\Wow6432Node\Citrix")) { 
    cmd /c "\\192.168.1.201\CITRIX$\CitrixReceiverLTSR.exe /silent" 
    }
    
elseif ((Test-Path "HKLM:\SOFTWARE\Wow6432Node\Citrix") -and `
((Get-ItemProperty "HKLM:\SOFTWARE\Wow6432Node\Citrix\PluginPackages\XenAppSuite\ICA_Client").version) -lt "12.4") {  
    #Upgrade Existing 12.3 to 4.9 LTSR
    cmd /c "\\192.168.1.201\CITRIX$\CitrixReceiverLTSR.exe /silent /RCU"    
}

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top