RISC.Blog

Immer bestens informiert – abonnieren Sie hier alle Blog-Artikel per RSS-Feed

Install Citrix XenDesktop 7.6 Controller from the Command Line

Author: Sinisa Sokolic Kommentare: 0 Datum: 04 Nov 2015

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.
[ + ] Weiterlesen

Install Citrix XenDesktop 7.6 Server VDA from the Command Line

Author: Sinisa Sokolic Kommentare: 0 Datum: 27 Okt 2015

This is the second post of a series about how to install basic infrastructure components. This was the first one: Install Citrix StoreFront 3.0.1 from the Command Line.
Today I want to share some details of installing a Citrix XenDesktop 7.6 Server VDA from the command line. At the end you will find (as usual) a PowerShell script that does the job for me (and hopefully for you too).

Now let´s get started…

Prerequisites

Before we can install the VDA component on a Windows Server 2012 R2 system (you can do it also on 2008 R2 if you want, but then you have to tweak a little bit with the Windows Features) we need to take care of the prerequisites. Usually the installation with the GUI takes care of missing prerequisites.
Today we will do it on our own because you now, I am a control-freak and don´t want to do installers what they want to do without my permission 😉

Visual C++ Redistributables
You need Microsoft Visual C++ 2008, 2010 and 2013 Runtimes (32-bit and 64-bit) on your VDA. In detail this means the installer is searching for the following versions:

  • MS_VCPP_2008_redist_9.0.30729.4148_x64
  • MS_VCPP_2010_redist_10.0.30319_x64
  • MS_VCPP_2010_redist_10.0.30319_x86
  • MS_VCPP_2013_redist_12.0.21005_x86
  • MS_VCPP_2013_redist_12.0.2100_x64

See the screenshot below, it shows the necessary versions. The other redistributables are installed through Windows Update.

1_vda

.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.

Microsoft Media Foundation
You need to activate Media Foundation before you install the Citrix VDA in order to support features such as HDX MediaStream Windows Media Redirection. Luckily Media Foundation is enabled during the installation of the Windows-Feature “Desktop Experience”. Look at the documentation at docs.citrix.com for further information.

Services
Please be aware of the fact that the Print Spooler Service needs to be running because otherwise setup of the VDA will fail. I have seen some high secure environments where the Spooler Service was deactivated in the base operating system image.

Windows-Features
In order to install the needed Windows-Features we open PowerShell and run the commands below:

# Windows-Feature Desktop-Experience
Write-Host "Installing Roles and Features" -ForegroundColor DarkGreen
Add-WindowsFeature Desktop-Experience
            
# Windows-Feature Remote Desktop Services Host
Write-Host "Installing RDS-RD-Server" -ForegroundColor DarkGreen
Add-WindowsFeature RDS-RD-Server

# Windows-Feature Remote Assistance
Write-Host "Installing Remote-Assistance" -ForegroundColor DarkGreen
Add-WindowsFeature Remote-Assistance

We need to reboot the server because Desktop-Experience and RDS-RD-Server need a reboot.

The following two Windows-Features are optional:

        
# Windows-Feature XPS Viewer
Write-Host "Installing XPS-Viewer" -ForegroundColor DarkGreen
Add-WindowsFeature XPS-Viewer

# Windows-Feature Windows Search Service
Write-Host "Installing Search-Service" -ForegroundColor DarkGreen
Add-WindowsFeature Search-Service

Install Visual C++ Redistributables
Now we will install the C++ Redistributables. This could be done like this:

# MS_VCPP_2008_redist_9.0.30729.4148_x64
Write-Host "MS_VCPP_2008_redist_9.0.30729.4148_x86" -ForegroundColor DarkGreen
start-process -FilePath "$labsources\XenDesktop_76\VDA\VcRedist_2008_SP1\vcredist_x64.exe" -ArgumentList "/Q" -Wait

# MS_VCPP_2010_redist_10.0.30319_x64
Write-Host "MS_VCPP_2008_redist_10.0.30319_x64" -ForegroundColor DarkGreen
start-process -FilePath "$labsources\XenDesktop_76\VDA\VcRedist_2010_RTM\vcredist_x64.exe" -ArgumentList "/Q" -Wait
           
# MS_VCPP_2010_redist_10.0.30319_x86
Write-Host "MS_VCPP_2010_redist_10.0.30319_x86" -ForegroundColor DarkGreen
start-process -FilePath "$labsources\XenDesktop_76\VDA\VcRedist_2010_RTM\vcredist_x86.exe" -ArgumentList "/Q" -Wait

# MS_VCPP_2013_redist_12.0.21005_x86
Write-Host "MS_VCPP_2012_redist_12.0.2100_x86" -ForegroundColor DarkGreen
start-process -FilePath "$labsources\XenDesktop_76\VDA\VcRedist_2013_RTM\vcredist_x64.exe" -ArgumentList "/Q" -Wait

# MS_VCPP_2013_redist_12.0.2100_x64
Write-Host "MS_VCPP_2012_redist_12.0.2100_x64" -ForegroundColor DarkGreen
start-process -FilePath "$labsources\XenDesktop_76\VDA\VcRedist_2013_RTM\vcredist_x86.exe" -ArgumentList "/Q" -Wait

Check Printer Spooler
We move on with configuring the Printer Spooler. If you are sure he is running skip this step.

# https://docs.citrix.com/en-us/xenapp-and-xendesktop/7-6/xad-build-new-enviroment/xad-install-prepare.html
# VDA won´t install if Printer Spooler is not running
set-service -Name "Spooler" -StartupType Automatic -PassThru | Start-service

VDA Installation

Now that all prerequisites are met we can go on with the installation.You can choose from many commandline options to install a VDA. This is a list of them for your reference:

  • /COMPONENTS VDA, PLUGINS
  • /EXCLUDE excludes a package from installation
  • /HELP, /H, /? Shows this dialog
  • /NOREBOOT Suppress reboot after installation (if needed)
  • /PASSIVE, /QUIET Do not show UI during  installation
  • /BASEIMAGE Enables Personal vDisk support
  • /XA_SERVER_LOCATION XenApp Server address for Citrix Receiver
  • /CONTROLLERS List of controllers to register with (FQDNs)
  • /SITE_GUID XenServer site GUID in AD
  • /HDXFLASHV2ONLY Prevents installation of Flash Redirection legacy binaries for enhanced security
  • /ENABLE_HDX_3D_PRO Installs HDX 3D Pro Virtual Desktop Agent
  • /KEY_FILE Location of the key file for installing HDX 3D Pro
  • /ENABLE_HDX_PORTS Open up HDX ports in Windows firewall (if enabled)
  • /ENABLE_REAL_TIME_TRANSPORT Opens UDP ports 16500 – 16509 to enable HDX Real-time Transport for Audio in Windows Firewall (if enabled)
  • /ENABLE_REMOTE_ASSISTANCE Enable Remote Assistance
  • /OPTIMIZE Set up registry for faster VDA operation
  • /PORTNUMBER Port number to use for VDA controller communication
  • /REMOVE Remove components (instead of installing)
  • /RECONFIGURE Perform VDA reconfiguration
  • /MASTERIMAGE Set up the VDA as a Master Image

I like it simple therefore this is everything I am doing to install the VDA today:

# Install Citrix XenDesktop 7.6.300.7020 VDA
Write-Host "Part 02 - Installing XenDesktop VDA" -ForegroundColor Green
start-process -FilePath "$labsources\XenDesktop_76\VDA\VDAServerSetup_7.6.300.exe" -ArgumentList "/noreboot /quiet /components VDA" -Wait 

Additionally you can install Citrix Receiver if you need it. I have added a command as example. All command line options can be found here.

# Install Receiver 14.3.100.10
Write-Host "Part 02 - Installing Receiver 14.3.100.10" -ForegroundColor Green
start-process -FilePath "$labsources\XenDesktop_76\VDA\CitrixReceiver.exe" -ArgumentList "/noreboot /silent /includeSSON /ADDLOCAL=ReceiverInside,ICA_Client,WebHelper,SSON,AM,USB,DesktopViewer,Flash ALLOWADDSTORE=N" -Wait

Script

Here ist the complete script to install a VDA from the Command Line. I haven´t inserted a reboot handling in it, so you have to take care of the reboots on your own. It is only meant to give you an idea of what needs to be done to install the VDA in that way.



# Script Variables
$labsources = "\\FILESERVER\SHARE"

Write-Host "Install: Citrix XenDesktop 7.6.300 VDA" -ForegroundColor Green

# Part 01 - Prerequisites
Write-Host "Part 01 - Installing Prerequisites..." -ForegroundColor Green

# MS_VCPP_2008_redist_9.0.30729.4148_x64
Write-Host "MS_VCPP_2008_redist_9.0.30729.4148_x86" -ForegroundColor DarkGreen
start-process -FilePath "$labsources\XenDesktop_76\VDA\VcRedist_2008_SP1\vcredist_x64.exe" -ArgumentList "/Q" -Wait

# MS_VCPP_2010_redist_10.0.30319_x64
Write-Host "MS_VCPP_2008_redist_10.0.30319_x64" -ForegroundColor DarkGreen
start-process -FilePath "$labsources\XenDesktop_76\VDA\VcRedist_2010_RTM\vcredist_x64.exe" -ArgumentList "/Q" -Wait
           
# MS_VCPP_2010_redist_10.0.30319_x86
Write-Host "MS_VCPP_2010_redist_10.0.30319_x86" -ForegroundColor DarkGreen
start-process -FilePath "$labsources\XenDesktop_76\VDA\VcRedist_2010_RTM\vcredist_x86.exe" -ArgumentList "/Q" -Wait

# MS_VCPP_2013_redist_12.0.21005_x86
Write-Host "MS_VCPP_2012_redist_12.0.2100_x86" -ForegroundColor DarkGreen
start-process -FilePath "$labsources\XenDesktop_76\VDA\VcRedist_2013_RTM\vcredist_x64.exe" -ArgumentList "/Q" -Wait

# MS_VCPP_2013_redist_12.0.2100_x64
Write-Host "MS_VCPP_2012_redist_12.0.2100_x64" -ForegroundColor DarkGreen
start-process -FilePath "$labsources\XenDesktop_76\VDA\VcRedist_2013_RTM\vcredist_x86.exe" -ArgumentList "/Q" -Wait

Write-Host "Installing Roles and Features" -ForegroundColor Green
# Windows Feature Desktop Experience
Write-Host "Installing Desktop-Experience" -ForegroundColor DarkGreen
Add-WindowsFeature Desktop-Experience
            
# Windows Feature Remote Desktop Services Host
Write-Host "Installing RDS-RD-Server" -ForegroundColor DarkGreen
Add-WindowsFeature RDS-RD-Server

# Windows Feature Remote Assistance
Write-Host "Installing Remote-Assistance" -ForegroundColor DarkGreen
Add-WindowsFeature Remote-Assistance
            
# Windows Feature XPS Viewer
Write-Host "Installing XPS-Viewer" -ForegroundColor DarkGreen
Add-WindowsFeature XPS-Viewer

# Windows Feature Windows Search Service
Write-Host "Installing Search-Service" -ForegroundColor DarkGreen
Add-WindowsFeature Search-Service

# Check Printer Spooler
# https://docs.citrix.com/en-us/xenapp-and-xendesktop/7-6/xad-build-new-enviroment/xad-install-prepare.html
# VDA won´t install if Printer Spooler is not running
set-service -Name "Spooler" -StartupType Automatic -PassThru | Start-service

########################################################
# Please reboot the server before moving further....
########################################################

Write-Host "Finished Installing Prerequisites..." -ForegroundColor Green

# Part 02 - Citrix
Write-Host "Part 02 - Installing Software..." -ForegroundColor Green
            
# Install Citrix XenDesktop/XenApp 7.6.300.7020 VDA
Write-Host "Part 02 - Installing XenDesktop/XenApp VDA" -ForegroundColor DarkGreen
start-process -FilePath "$labsources\XenDesktop_76\VDA\VDAServerSetup_7.6.300.exe" -ArgumentList "/noreboot /quiet /components VDA" -Wait 
            
# Install Receiver 14.3.100.10
Write-Host "Part 02 - Installing Receiver 14.3.100.10" -ForegroundColor DarkGreen
start-process -FilePath "$labsources\XenDesktop_76\VDA\CitrixReceiver.exe" -ArgumentList "/noreboot /silent /includeSSON /ADDLOCAL=ReceiverInside,ICA_Client,WebHelper,SSON,AM,USB,DesktopViewer,Flash ALLOWADDSTORE=N" -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

Install Citrix StoreFront 3.0.1 from the Command Line

Author: Sinisa Sokolic Kommentare: 0 Datum: 22 Okt 2015

With this blog post I want to show you how to install Citrix StoreFront 3.0.1 with all it´s necessary prerequisites from the command line.

If you start the Citrix StoreFront installer via GUI the installer takes care of all the prerequisites on your system. You can see this behaviour in the screenshot:

02_storefront

In enterprise environments it is often not wanted to have installers taking care of prerequisites. I am a fan of total control over the environments I am taking care of. Every component needs to be installed in a controlled way.
[ + ] Weiterlesen

A Look Inside My Homelab

Author: Sinisa Sokolic Kommentare: 0 Datum: 20 Okt 2015

I was busy upgrading and rebuilding my home lab in the last weeks. Now I want to share with you in detail how it looks like.

This blog post will cover the following topics:

  • Hardware overview
  • Network overview
  • Operating System overview
  • installation and configuration
  • Performance
  • Apps
  • Future Additions

[ + ] Weiterlesen

How to set Citrix XenApp 7.6 Policies with PowerShell

Author: Sinisa Sokolic Kommentare: 0 Datum: 29 Sep 2015

I was recently asked how to create Citrix policies with PowerShell and I must admit that it took me some time to figure it out. If you search for solutions you get only a few hints on how to do it. The best hint came from Ingmar Verheij (https://www.ingmarverheij.com/set-citrix-policies-via-powershell/) but things changed a little but with the latest XenApp and XenDesktop versions.

Why should we use PowerShell to create Citrix Policies?
Lets start with some words why you should use PowerShell and why you should use Citrix Policies without setting them by Group Policy. PowerShell gives us the possibility to create baseline policies for a whole bunch of customers and you can parameterize your installations or you can recreate your homelab automatically.
And… processing local policies should be much faster (I will recheck that argument shortly by comparing the logon duration between locally set Citrix Policies and GPOs).

Now let me explain how to do it:
[ + ] Weiterlesen

Microsoft Invite – neue App zur Terminkoordination

Author: admin Kommentare: 0 Datum: 29 Sep 2015

Microsoft hat eine neue App vorgestellt, die für Unternehmen durchaus interessant sein könnte. Mit der App „Invite“ wendet Microsoft sich an iOS-Nutzer, die vor allem unterwegs neue Termine und Treffen mit vielen anderen Teilnehmern organisieren wollen.

Hervorzuheben ist hierbei, dass die Nutzung unabhängig von einem bestehenden Office365-Abo ist. Allerdings empfiehlt Microsoft die Nutzung eines Office365 Abos. Ein weiterer Vorteil ist, dass die App zusätzlich die Termin-Koordination mit einem Exchange-System übernehmen kann. Ein Nutzer gibt Terminvorschläge mit Auswahlmöglichkeit vor.

Der generierte Link wird an andere Personen versendet, die ihre Präferenzen dann auswählen können. Für Anwender, die die App nicht installiert haben, besteht die Möglichkeit, über eine Web-Oberfläche zurückzugreifen.

Durch die Einbindung in die Microsoft-Infrastruktur informiert das Programm Nutzer automatisch über Konflikte mit ihren Terminen im Outlook- oder Exchange-Kalender.

Da die Plattform keine Firmenumgebung voraussetzt, funktioniert sie prinzipiell mit allen E-Mail-Adressen (über eine *.ics-Datei).

Microsoft setzt aktuell ein iPhone voraus, allerdings sollen in nächster Zeit Versionen für Android und Windows Phone folgen.

Unter dem folgenden Link erhalten Sie weiteren Info (Microsoft Blog):
https://blogs.office.com/2015/09/24/invite-the-easiest-way-to-organize-meetings-on-the-go/

Und nachfolgend ein Link für Interessierte zum App-Store (z.Z. nur in den USA & Kanada verfügbar):
https://itunes.apple.com/us/app/invite-microsoft-garage-project/id1032458349#

SCCM managed devices disappear from the console

Author: admin Kommentare: 0 Datum: 24 Sep 2015

When using System Center Configuration Manager sometimes managed devices disappear from the Console. These devices may still be in use und therefore should not be deleted, but continue to be managed via SCCM. The disappearance is controlled by a concealed option within the Site Maintenance of SCCM.
The Site Maintenance Options in the SCCM Console can be found at Administration -> Site Configuration -> Sites. Right click on the Site and select “Site Maintenance”.

Here are several Maintenance Tasks that can be activated and will start actions in defined periods.

The task “Delete Inactive Client Discovery Data” will delete inactive Devices after a defined number of days. Standard setting for this task is “deactivated” and when activated the period is 90 days.

Before setting this option you should think about the usage of your devices. Sometimes field workers or simply colleagues on holidays can easily be more then three or four weeks offline before connecting to the network again. In these cases the period should not be set to low.

About inactive devices: A device will be set inactive if it does not communicate with the SCCM server anymore. The communication can be Heartbeat, System or Network Discovery.

A corresponding Microsoft TechNet article can be found here: https://technet.microsoft.com/en-us/library/bb693646.aspx (article is for SCCM 2007, but is still valid for SCCM 2012).

I hope this helps during the next troubleshooting.

Robert

uberAgent for Splunk – Installation and Configuration

Author: Sinisa Sokolic Kommentare: 0 Datum: 01 Apr 2015

With this second blog post regarding Splunk and Helge´s uberAgent I want to share my experiences during installation and configuration.
I will start with an overview of the uberAgent installation, will then switch to some configuration settings and give you a quick overview about how it can be licensed and which operating systems are supported. At the end I will describe how you can clean up your Splunk server to start with a fresh data collection.

[ + ] Weiterlesen

Installing Splunk and uberAgent components

Author: Sinisa Sokolic Kommentare: 0 Datum: 25 Feb 2015

Today I want share the steps that are necessary to install the prerequisites for Helge Klein´s uberAgent. We will start with the installation of Splunk. After this first step is done we will go on and install the server components of uberAgent.
[ + ] Weiterlesen

VMware Horizon 6.0 & Mirage 5.0 Reviewers Guides

Author: Sinisa Sokolic Kommentare: 0 Datum: 09 Jan 2015

VMware released their Mirage 5.0 Reviewer´s Guide. It can be downloaded here: https://www.vmware.com/files/pdf/techpaper/vmware-horizon-mirage-reviewers-guide.pdf.

Topics covered are:

  • What is VMware Mirage?
  • Key features
  • Packaging and licensing
  • Components and architecture
  • Installation and configuration
  • Hands-on evaluation exercises

There is also a Reviewers Guide available for Horizon 6.0. It can be downloaded here: https://www.vmware.com/files/pdf/view/VMware-View-Evaluators-Guide.pdf

Topics covered are:

  • Installation Prerequisites
  • Installing View Components
  • Remote Desktop Session Host Configuration
  • Configuring View
  • Preparing Desktop Images for Linked-Clone Desktop Pool Deployment
  • Preparing a Desktop Image for Full-Clone Desktop Pool Deployment
  • Deploying View Desktops and Applications
  • Entitling Users to View Desktops and Applications
  • Connecting to View Desktops and Applications

Cheers,
Sinisa