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: http://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.
Prerequisites
Visual C++ Redistributables
You need Microsoft Visual C++ 2008 on your system. In detail this means the installer is searching for the following version:
- MS_VCPP_2008_redist_9.0.30729.4148_x64
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
Controller Installation
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:
- /help or /h
- /quiet or /passive
- /logpath path
- /noreboot
- /remove
- /removeall
- /xenapp
- /configure_firewall
- /components component [fusion_builder_container hundred_percent=”yes” overflow=”visible”][fusion_builder_row][fusion_builder_column type=”1_1″ background_position=”left top” background_color=”” border_size=”” border_color=”” border_style=”solid” spacing=”yes” background_image=”” background_repeat=”no-repeat” padding=”” margin_top=”0px” margin_bottom=”0px” class=”” id=”” animation_type=”” animation_speed=”0.3″ animation_direction=”left” hide_on_mobile=”no” center_content=”no” min_height=”none”][,component] … (Required.) Comma-separated list of components to install or remove. Valid values are:
CONTROLLER – Controller
DESKTOPSTUDIO – Studio
DESKTOPDIRECTOR – Director
LICENSESERVER – Citrix Licensing
STOREFRONT – StoreFront
If this option is omitted, all components are installed (or removed, if the /remove option is also specified). - /installdir directory
- /tempdir directory
- /nosql
- /no_remote_assistance (Valid only when installing Director.)
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
Additional Citrix Components
Now we are going to install the latest Citrix Studio.
# Hotfix DStudio760WX64002 (Version 7.6.2) For Citrix Studio 7.6 x64 - English # http://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
Citrix Group Policy Management
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
XenDesktop 7.6 PowerShell Module
We will install the latest XenDesktop PowerShell Module.
# Hotfix XDPoshModule760WX64002 - For XenApp 7.6; XenDesktop 7.6 PowerShell Module (64-bit) - English # http://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
Hotfixes Update 2 – For Delivery Controller
Before the installation of the packages read this article first: http://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 # http://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
Script
Here is the complete script to install a Controller from the Command Line:
<# .SYNOPSIS This Script installs a Citrix XenDesktop 7.6 Controller. .DESCRIPTION The following components are installed: - Microsoft Visual C++ 2008 x64 Redistributable - XenDesktop 7.6 Controller - Citrix Studio - Citrix Group Policy Management - XenDesktop PowerShell Module - Citrix XenDesktop 7.6 Controller Hotfix 2 - no further customization in this script .PARAMETER .NOTES This script was tested on Windows Server 2012 R2 .LINK http://www.RISConsulting.de .AUTHOR Sinisa Sokolic .Date 2015-10-19 #> # 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 # http://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 # http://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 # http://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 is without warranty.
Cheers,
Sinisa