Here we go again with the next post in a row about installing Citrix XenDesktop from the command line. This was the first one: Install Citrix StoreFront 3.0.1 from the Command Line.
The second one is here: https://www.sinisasokolic.com/install-citrix-xendesktop-7-6-server-vda-from-the-command-line/.
Because we need a Controller for our infrastructure to work correctly it is crucial to have it in place ;-). Let´s see what it takes to get it up and running in this third part of the series.
Visual C++ Redistributables
You need Microsoft Visual C++ 2008 on your system. In detail this means the installer is searching for the following version:
You might have other versions already installed but that doesn´t matter in this case. The installer is searching for a specific version.
.NET Framework
You also need Microsoft .NET Framework 4.5.1 (4.5.2 and 4.6 are also supported) on the system. If you have run Windows Update on the server and have installed everything you could it should be fine.
Windows Features
If you want to edit Citrix Policies with Group Policy Management you need to add the Group Policy Management Console Feature on the Controller.
Add-WindowsFeature GPMC
Install Visual C++ Redistributables
Now we will install the C++ Redistributables. This could be done like this:
# Install Microsoft Visual C++ 2008 x64 Redistributable # Taken from installation media - https://www.citrix.com/downloads/xendesktop/product-software/xendesktop-76-platinum.html Write-Host "Installing Microsoft Visual C++ 2008 x64 Redistributable" -ForegroundColor DarkGreen start-process -Filepath "$labsources\XenDesktop_76\media\Support\VcRedist_2008_SP1\vcredist_x64.exe" -ArgumentList "/Q" -Wait
The Controller installation is very simple. Usually I create Admin VDAs with Studio and Director installed on them to administrate the complete Site in bigger environments. Because I had many problems since XenDesktop 7.1 during upgrades to 7.5 and 7.6 I am usually installing the necessary components also on the Controllers. It makes life sometimes easier.
Let´s have look at the options we have to install a Controller:
Read this page for further details:
https://docs.citrix.com/en-us/xenapp-and-xendesktop/7-6/xad-build-new-enviroment/xad-install-command.html
After choosing the necessary options install the Controller with the command line below:
# Install Citrix XenDesktop 7.6 Controller # https://www.citrix.com/downloads/xendesktop/product-software/xendesktop-76-platinum.html Write-Host "Installing Citrix XenDesktop 7.6 Controller" -ForegroundColor DarkGreen start-process -Filepath "$labsources\XenDesktop_76\media\x64\XenDesktop Setup\Xendesktopserversetup.exe" -ArgumentList "/quiet /Components CONTROLLER /nosql /noreboot" -Wait
Now we are going to install the latest Citrix Studio.
# Hotfix DStudio760WX64002 (Version 7.6.2) For Citrix Studio 7.6 x64 - English # https://support.citrix.com/article/CTX142245 Write-Host "Installing Hotfix DStudio760WX64002" -ForegroundColor DarkGreen start-process -Filepath "$labsources\XenDesktop_76\Controller\DStudio760WX64002\DStudio760WX64002.msi" -ArgumentList "/quiet" -Wait
If we want to use GPMC to edit Group Policies we need additionally Citrix Group Policy Management installed on the Controller.
# Install Citrix GroupPolicyManagement 2.5.0.0 # https://www.citrix.com/downloads/xendesktop/product-software/xendesktop-76-feature-pack-3-platinum.html Write-Host "Installing Citrix GroupPolicyManagement 2.5.0.0" -ForegroundColor DarkGreen start-process -Filepath "$labsources\XenDesktop_76\Controller\CitrixGroupPolicyManagement_7.6.300\CitrixGroupPolicyManagement_x64.msi" -ArgumentList "/quiet" -Wait
We will install the latest XenDesktop PowerShell Module.
# Hotfix XDPoshModule760WX64002 - For XenApp 7.6; XenDesktop 7.6 PowerShell Module (64-bit) - English # https://support.citrix.com/article/CTX142288 Write-Host "Installing Hotfix XDPoshModule760WX64002" -ForegroundColor DarkGreen start-process -Filepath "$labsources\XenDesktop_76\Controller\XDPoshModule760WX64002\XDPoshModule760WX64002.msi" -ArgumentList "/quiet /norestart" -Wait
Before the installation of the packages read this article first: https://support.citrix.com/article/CTX142439
If the hotfix package ConfMgrWOL760WX64002 is installed first, the error message “HCLPlugins\Managed Machine Folder not found” appears.
To prevent the error, install the following packages first: Broker Services [BrokerSrvc760WX64002], Machine Creation Services [MCSrvc760WX64002] or Host Services [HostSrvc760WX64002]. Citrix strongly recommends that ConfMgrWOL760WX64002 is installed last.
If you need to remove the hotfixes, uninstall ConfMgrWOL760WX64002 first and then uninstall the rest of the packages.
# Hotfixes Update 2 - For Delivery Controller 7.6 (64-bit) - English # https://support.citrix.com/article/CTX142439 Write-Host "Installing Hotfixes Update 2 - For Delivery Controller 7.6 (64-bit)" -ForegroundColor DarkGreen Write-Host "Installing BrokerSrvc760WX64002" -ForegroundColor Green start-process -Filepath "$labsources\XenDesktop_76\Controller\XA_XD_760_Controller_X64_HFs_2\BrokerSrvc760WX64002.msi" -ArgumentList "/quiet /norestart" -Wait Write-Host "Installing HostSrvc760WX64002" -ForegroundColor DarkGreen start-process -Filepath "$labsources\XenDesktop_76\Controller\XA_XD_760_Controller_X64_HFs_2\HostSrvc760WX64002.msi" -ArgumentList "/quiet /norestart" -Wait Write-Host "Installing MCSrvc760WX64002" -ForegroundColor DarkGreen start-process -Filepath "$labsources\XenDesktop_76\Controller\XA_XD_760_Controller_X64_HFs_2\MCSrvc760WX64002.msi" -ArgumentList "/quiet /norestart" -Wait Write-Host "Installing MonitorSrvc760WX64002" -ForegroundColor DarkGreen start-process -Filepath "$labsources\XenDesktop_76\Controller\XA_XD_760_Controller_X64_HFs_2\MonitorSrvc760WX64002.msi" -ArgumentList "/quiet /norestart" -Wait Write-Host "Installing MonitorPSSI760WX64002" -ForegroundColor DarkGreen start-process -Filepath "$labsources\XenDesktop_76\Controller\XA_XD_760_Controller_X64_HFs_2\MonitorPSSI760WX64002.msi" -ArgumentList "/quiet /norestart" -Wait Write-Host "Installing ConfigMgrWOL760WX64002" -ForegroundColor DarkGreen start-process -Filepath "$labsources\XenDesktop_76\Controller\XA_XD_760_Controller_X64_HFs_2\ConfigMgrWOL760WX64002.msi" -ArgumentList "/quiet /norestart" -Wait
Here ist the complete script to install a Controller from the Command Line:
# Script Variables $labsources = "\\DEMOWDC1001\lab_sources" Write-Host "Starting Installation of Citrix XenDesktop Delivery Controller 7.6 (64-bit)" -ForegroundColor Green # Install necessary Windows-Features for Group Policy Editing # Windows Feature GPMC Write-Host "Installing GPMC" -ForegroundColor DarkGreen Add-windowsfeature GPMC # Install Microsoft Visual C++ 2008 x64 Redistributable # Taken from installation media - https://www.citrix.com/downloads/xendesktop/product-software/xendesktop-76-platinum.html Write-Host "Installing Microsoft Visual C++ 2008 x64 Redistributable" -ForegroundColor Green start-process -Filepath "$labsources\XenDesktop_76\media\Support\VcRedist_2008_SP1\vcredist_x64.exe" -ArgumentList "/Q" -Wait # Install Citrix XenDesktop 7.6 Controller # https://www.citrix.com/downloads/xendesktop/product-software/xendesktop-76-platinum.html Write-Host "Installing Citrix XenDesktop 7.6 Controller" -ForegroundColor Green start-process -Filepath "$labsources\XenDesktop_76\media\x64\XenDesktop Setup\Xendesktopserversetup.exe" -ArgumentList "/quiet /Components CONTROLLER /nosql /noreboot" -Wait # Hotfix DStudio760WX64002 (Version 7.6.2) For Citrix Studio 7.6 x64 - English # https://support.citrix.com/article/CTX142245 Write-Host "Installing Hotfix DStudio760WX64002" -ForegroundColor Green start-process -Filepath "$labsources\XenDesktop_76\Controller\DStudio760WX64002\DStudio760WX64002.msi" -ArgumentList "/quiet" -Wait # Install Citrix GroupPolicyManagement 2.5.0.0 # https://www.citrix.com/downloads/xendesktop/product-software/xendesktop-76-feature-pack-3-platinum.html Write-Host "Installing Citrix GroupPolicyManagement 2.5.0.0" -ForegroundColor Green start-process -Filepath "$labsources\XenDesktop_76\Controller\CitrixGroupPolicyManagement_7.6.300\CitrixGroupPolicyManagement_x64.msi" -ArgumentList "/quiet" -Wait # Hotfix XDPoshModule760WX64002 - For XenApp 7.6; XenDesktop 7.6 PowerShell Module (64-bit) - English # https://support.citrix.com/article/CTX142288 Write-Host "Installing Hotfix XDPoshModule760WX64002" -ForegroundColor Green start-process -Filepath "$labsources\XenDesktop_76\Controller\XDPoshModule760WX64002\XDPoshModule760WX64002.msi" -ArgumentList "/quiet /norestart" -Wait # Hotfixes Update 2 - For Delivery Controller 7.6 (64-bit) - English # https://support.citrix.com/article/CTX142439 Write-Host "Installing Hotfixes Update 2 - For Delivery Controller 7.6 (64-bit)" -ForegroundColor Green Write-Host "Installing BrokerSrvc760WX64002" -ForegroundColor Green start-process -Filepath "$labsources\XenDesktop_76\Controller\XA_XD_760_Controller_X64_HFs_2\BrokerSrvc760WX64002.msi" -ArgumentList "/quiet /norestart" -Wait Write-Host "Installing HostSrvc760WX64002" -ForegroundColor Green start-process -Filepath "$labsources\XenDesktop_76\Controller\XA_XD_760_Controller_X64_HFs_2\HostSrvc760WX64002.msi" -ArgumentList "/quiet /norestart" -Wait Write-Host "Installing MCSrvc760WX64002" -ForegroundColor Green start-process -Filepath "$labsources\XenDesktop_76\Controller\XA_XD_760_Controller_X64_HFs_2\MCSrvc760WX64002.msi" -ArgumentList "/quiet /norestart" -Wait Write-Host "Installing MonitorSrvc760WX64002" -ForegroundColor Green start-process -Filepath "$labsources\XenDesktop_76\Controller\XA_XD_760_Controller_X64_HFs_2\MonitorSrvc760WX64002.msi" -ArgumentList "/quiet /norestart" -Wait Write-Host "Installing MonitorPSSI760WX64002" -ForegroundColor Green start-process -Filepath "$labsources\XenDesktop_76\Controller\XA_XD_760_Controller_X64_HFs_2\MonitorPSSI760WX64002.msi" -ArgumentList "/quiet /norestart" -Wait Write-Host "Installing ConfigMgrWOL760WX64002" -ForegroundColor Green start-process -Filepath "$labsources\XenDesktop_76\Controller\XA_XD_760_Controller_X64_HFs_2\ConfigMgrWOL760WX64002.msi" -ArgumentList "/quiet /norestart" -Wait # Wait 10 seconds to see errors if the occured start-sleep -Seconds 10 # Reboot system Write-Host -ForegroundColor Green “Rebooting System..." Restart-Computer -ComputerName $env:COMPUTERNAME
I hope this is useful for you.
All information without warranty.
Cheers,
Sinisa