Pawel Serwan Blog

Citrix, Microsoft and other stuff


[PowerShell] Generate report of your Citrix policies

CitrixPoliciesSome time ago I needed to create report of Citrix policies configured in my Citrix XenApp 6.5 farm. I thought I can simply do that using Citrix PowerShell commands. But it occurred that it is not so simple. Other requirement was to have the report created in Word format 🙂 So I started to write a simple script that in the end does what I needed: it lists your Citrix policies, checks their configuration and then generates a nice Word document. Below you can find the source code of the script. I hope you will like it and find it useful.

Continue reading


Leave a comment

How to fix Citrix Receiver random pops up

receiver-x1-iconCitrix Receiver is important part of every XenApp or XenDesktop architecture. It has to be installed on the device from which user would like to launch Citrix resources. This is why it is important to keep it running all the time without testing limits of user patience. Recently I was reported problem with Citrix Receiver window pops up randomly like every 5 minutes. The first quick solution I thought about was to reinstall the plugin on user PC. But it of course didn’t work even though I used Receiver Clean-up Utility. I did check on Citrix forums and it occurred that this problem was happening in many different companies and there was no universal fix to that problem. So I did the troubleshooting by myself. After few attempts I finally found the root cause of Citrix Receiver pop up. It occurred that there were some orphaned entries in Citrix Receiver registry pointing to the Citrix resources that were not available anymore on my Citrix XenApp farm. Still Receiver was trying to check that and every 5 minutes was trying to refresh application list for user. And this caused a pop up of Receiver window. Continue reading


Citrix XenDesktop 7.7 released!

This seems to be late Christmas present for all Citrix people around the world. Citrix just released today new version of XenDesktop with number 7.7. You can get it easily from MyCitrix portal after logging into your Citrix account. Just simply visit the below page, log in and you can explore the newest version:

There are also additional new components available: Continue reading

1 Comment

Citrix Synergy 2015 – Day 1

WP_000554Counting down finished! I’m just sitting and waiting for Keynote session by Mark Templeton, Citrix CEO.  — That is how I started writing this blog post almost 14 days ago. It took me a while to write a review of 1st day but finally you can read it!

Let’s start from the scratch. As I wrote in the previous post (Day 0) getting to Orlando, FL took me over 13 hours so you can imagine how excited I was to finally take part in Synergy conference. I was amazed by the size of the Orange County Conference Center and really shocked by the number of people. It was announced later during the conference that this year edition was the biggest one in the history. You could especially see that after entering the hall where Keynote session led by Mark Templeton was taking place. The hall was huge and the number of crowds was really amazing. I had no idea that so many people work with Citrix technologies and they are interested to come and spend 3 days listening about them. My first felling was: “That’s for sure America”. Everything was big – big conference center, huge Keynote hall and of course a stage with extremely large display on which Synergy TV was displayed. That was truly American style event 😀 You can see it below! Continue reading


[Powershell] Citrix XenApp Monitoring Script ver. 2.1


I got few questions regarding my Citrix XenApp monitoring script written in Powershell. I’ve decided to share with you it’s second better and improved version which has additional conditions on checking if really Citrix ICA connections was launched properly and your Citrix application is available for interaction with user. What is also improved is the overall time needed for the script to run. Right now all logons happen simultaneously thanks to which the script finishes below 2 minutes ( I tested that for about 20 servers). So you have now possibility to schedule a task that will be running more frequent and you will be able to better check health of your Citrix XenApp environment. Continue reading


Citrix XenApp Monitoring Script

MonitoringMonitoring any infrastructure is demanding task. Despite the numerous monitoring tools available on the market I haven’t found yet the one that would allow to monitor Citrix XenApp farms completely. Not only by checking ping, free space and if IMA service is running. What if there is a problem with other services e.g. Citrix Print Manager service or other Citrix related that hanged and doesn’t allow users to launch their app? Even though you monitor that service you will not know about that.

That is why I was looking a way to check if Citrix XenApp is really accessible and allow users to launch applications. Recently I came across great article by Stan Czerno regarding his monitoring script. It is really good piece of work from him. However for some reasons the script was not working for me and I have changed it a bit. I had the problem with
$ICA.GetNotificationReason() which alwasy got back “EventNone” even if the application launched. That’s the reason I changed the way I check if the application is really launched or not. Additionally I’ve added a way to get all XenApp servers from the farm. Continue reading


First Look: XenApp/XenDesktop 7.6 – Part 9 (PowerShell)

Welcome in the last part of the First Look series on XenApp/XenDesktop 7.6. I made a long break since last post but luckily I found time to finish the series. Today I would like to focus on PowerShell in Citrix XenApp/XenDesktop 7.6. First let’s see what we did already:

In the first part – we have installed first Delivery Controller and setup our new XenDesktop 7.6 site.

In the second part – we have configured first site.

In the third part – we prepared the template image of Windows Server 2012 R2 that will be used by MCS service for creation of new machines that will be hosting user desktops and applications.

In the fourth part – we have upgraded XenApp 6.5 server to XenApp 7.6.

In the fifth part – we have created machine catalogs and used previously prepared master image. We attached to the site as well upgraded XenApp 6.5 server.

In the sixth part – we have delivered applications to the end users by creating delivery groups.

In the seventh part – we have configured StoreFront so that end users could launch their apps.

In the eighth part – we checked how Connection Leasing really works.

In the ninth part – I would like to show you how you can use PowerShell in XenApp/XenDesktop 7.6.

As you I hope already know PowerShell became the industry standard when it comes to the management framework, at least in Windows world 🙂 And well Citrix is part of that world of course. Good to see then that XenApp/XenDesktop provide an SDK based on a number of Microsoft Windows PowerShell version 3.0 snap-ins that allows you to perform the same tasks as you would with the Citrix Studio console, together with tasks you cannot do with Studio alone. To use SDK you need to just launch PowerShell console or PowerShell ISE if you would like to have PowerShell editor where you can write you scripts on your server with installed Citrix XenApp/XenDesktop 7.6. Continue reading