Liste des serveurs XenApp de chaque applications : Prise en compte des WorkerGroups


Nous vous présentons une ligne de commande Powershell permettant d’extraire la liste des serveurs d’une application publié.

La particularité est que nous allons prendre en compte le fait que l’application peut etre publié soit directement sur des serveurs définis soit par un worker group.

Le script va alors sortir la liste des serveurs contenus dans le worker group :

[important]Get-XAApplicationReport * | select DisplayName,FolderPath,@{N=’ServerNames’;E={$_.serverNames+($_|?{$_.WorkerGroupNames}|%{Get-XAWorkerGroup $_.WorkerGroupNames}).ServerNames}} |convertto-csv >> export.csv[/important]

Merci à pour la mise en “OneLiner”

Vous pouvez exporter un CSV, ici export.csv mais vous pouvez modifier le ConvertTo-Csv pour ConvertTo-Html et générer un fichier HTML exploitable.

Comme toujours n’hésitez pas à commenter 🙂


Cette commande n’est valable que si vos WorkerGroup sont peuplés avec la méthode d’ajout de Serveur de la ferme ( Pas par OU ni groupe serveur )

Nous ajouterons une mise à jour dans un 2ème Post.

XenApp servers list for each Application with WorkerGroups management


We present you a Powershell command line to retrieve the server list of published application.

The specificity is that we will take the fact that applications can be published directly on servers and/or by a worker group.

The script will then get list of servers contained in the worker group:

[important]Get-XAApplicationReport * | select DisplayName,FolderPath,@{N=’ServerNames’;E={$_.serverNames+($_|?{$_.WorkerGroupNames}|%{Get-XAWorkerGroup $_.WorkerGroupNames}).ServerNames}} |convertto-csv >> export.csv[/important]

Thanks to for the “OneLiner” form.

You can export a CSV file, here export.csv but you can change the ‘ConvertTo-Csv’ to ‘ConvertTo-Html’ and generate a usable HTML file.

As always feel free to comment 🙂



This command is ONLY functionnal if your worker group is populate with Server Farm ( not by OU or ServerGroup )

I will update the command in a second post.

Thanks to Glen for his help about this.



This is a Powershell command allow you to get all servers without regarding their type:

Get-XAWorkerGroupServer NAMEOFYOURWORKER |select servername

You can try command who is NOT finished because if you don’t have a publication publishing with a worker it return a $null

I will make an update (again )

Get-XAApplicationReport * | select DisplayName,FolderPath,@{N=’ServerNames’;E={$_.serverNames+($_|?{$_.WorkerGroupNames}|%{Get-XAWorkerGroup $_.WorkerGroupNames}).ServerNames}}



audit launch Application

We would like to introduce you to a Powershell script applicable to XenApp Version 6.0 and higher.

This script will allow to read on the XenApp server some informations about the user logged on :

Application name that was launched, his client name , application path, etc…

If you have a small infrastructure and / or do not want to use EdgeSight, use this script at the start of each session to supply a reporting file :

This code write the output in a local file, but you can export it to a network share or even a database if you want.

Good audit of your Citrix farm! 🙂

Europe Citrix Synergy Disappears


We want to share with you the amazing Citrix’s announcement of cancellation of Citrix Synergy in London.

They will create localized 3 events a day instead.

We are very disappointed by this announcement. Within one day is too short to discuss all technical matters that are to be processed.

So sad

Citrix Xenapp 6.5 Powershell Guide

The arrival of new versions of XenApp led to a scramble in our habits of management with the disappearance of integrated features and handy far as Report Center.

Powershell took it and it is not necessarily easy to take control of these new management capabilities.

We will present you a short guide with examples for better understanding of the tools available.

To start run Powershell console of the XenApp server on which you are:


In state the console Powershell knows anything about XenApp commands.

Traditional tools work: qfarm , dsmaint , etc…

You must therefore mount a snappin in the command prompt to run the following commands:

–          Add-PSSnapin “Citrix.XenApp.Commands”











The list of commands is available by executing the following command:

Get-Command -module “Citrix.XenApp.commands”

This module once installed will allow you to perform actions such as the Citrix console.

Ex : Get-XAFarm


So you can collect application data elements of the organization,farm informations ,interact with sessions, etc …


To demonstrate the potential application we will present different commands.

In the list of available commands you can see the four following features:

Get-XAApplication (application properties without the users and servers)

Get-XAApplicationIcon (manage the application icon)

Get-XAApplicationParameter (management applications according to their type)

Get-XAApplicationReport (application properties with all details)

Running the Get-XAAplication returns a list of properties:

ApplicationType                        : ServerInstalled
PreLaunch                              : False
DisplayName                            : notepad_virtuaprod
ApplicationId                          : 402c-0006-000005b1
Description                            :
FolderPath                             : Applications/TEST
BrowserName                            : notepad_virtuaprod
Enabled                                : True
HideWhenDisabled                       : False
SequenceNumber                         : 1344008919
LoadBalancingApplicationCheckEnabled   : True
ContentAddress                         :
CommandLineExecutabe          : notepad.exe
WorkingDirectory                       :

… etc

All this informations is not necessarily those searched. So we will filter it by using Powershell redirector

Get-xapplication | ?{$_.FolderPath.StartsWith(“Applications/TEST”)}

We use ? which is actually an alias equivalent to Where-Object

Select all applications starting with Applications/TEST Folderpath properties.

FolderPath properties is your folder in the Citrix management console.

Get-xapplicationReport | select DisplayName,commandLineExecutable

The instruction ‘Select’ allow you to select the wanted field in the return of the command.


If you want convert the result of this command into CSV or HTML format by  | ConvertTo-Csv

In your select replace Accounts field or ServerNames by :

, @{name=’Accounts’; Expression={$_.Accounts}}   (comptes users)

,@{name=’ServerNames’; Expression={$_.ServerNames}} (machines)

We use this presentation for a correct return is generated when formatting CSV or HTML depending on the option chosen

You can now choose your fields to establish the desired reports


You can get all information about your organization:

Ex :

– Farm Name : Get-XAFarm

– folders list : Get-XAFolder

– Server list : Get-XAServer

Ex : Get-XAServer | select ServerName

Get-XAServer give many informations : server IP , install path, setup date, citrix version, …


Powershell module can not only view but also create folders tree, workers groups, manage Citrix administrators and their rights, etc …


You can also interact directly on the current sessions on the servers:

Get-XASession -ServerName MONSERVER | select SessionName,AccountName,State

SessionName  AccountName      State ICA-TCP#5   MONDOMAIN\moi Active

You will find that a lot of information is available and it is necessary to place very quickly filters through “| select”

The command set is very well documented with examples.

To have it go with :


Citrix PowerShell interface is very powerful and fast turns necessary to automate your tasks.

We hope have done a service by this little guide.

Feel free to comment for more informations.



Delays in citrix session with the client Receiver 13.4

We observed symptoms of network latency in the session using citrix client Receiver 13.4.

This client is available by default on website.



We met symptoms that seems being network issues :
– Screen freezes

– Keystroke shifted in time

– Slow windows refresh

The mouse is generally available.



We perform our tests in a multi-farm and  various versions of XenApp environment.

We had to source a webinterface 5.4

We haven’t encountered any problems with XenApp 6.5, 6.0 and 5.0 infrastructure.

This issue concern only connection to Citrix Presentation Server 4.0


We therefore downgrade our client citrix to version 13.3

All symptoms have disappeared.

We offer and recommend using this client: Citrix Receiver 13.3 for using a connection to a Citrix 4.0 infrastructure

Greetings 2013

Happy new year


We present you a new blog about Citrix Powershell:

They present different commands and techniques to exploit your Citrix infrastructure.

Read and follow.

Please note that all links remain available on your right 🙂

Unable to delete SPL file ( print job )

Following a warning of disk space we diagnose a print job stuck on our Citrix server.

We executed a management  free disks space analyzer tools like TreeSize or SpaceMonger to determine the source.

For this case we detected a stuck print job having consequent size of 3.2 GB

We tried to remove it :

Without success :

A process locks the file to prevent its removal.

With no information about the owner of the file, it isn’t possible to know the cause of the blockage without using other tools.

To break the deadlock, run Process Explorer from SysInternals tool suite.

This tool will list the processes running on the machine.

Then click ‘Search’ (binoculars)

seek to ‘spool’  will allow us to search the list of those processes access a file named ‘spool’ on disk.

in the list of results we find that the iexplore.exe (PID 9728) process locks the file FP00190.spl

We just have to kill the process through the classic Task Manager or Process Explorer.

You can also contact the user in question than itself, it closes the application.

You can delete the print job and return back the service expected.


New citrix product ?