Unable to Delete Resources: There is currently an active background action

An addition to CTX138318 about how to delete an old Citrix Studio Hosting connection.
Instead of deleting every task manually we make use of PowerShell piping and Out-GridView.

Today in Citrix Studio I discovered a dead Hosting connection I set up years ago for some MCS tests. When I tried to simply delete the connection, I received the following message:

The error message leads to the following (helpful!) KB article: CTX138318

After following the different steps outlined in the article …

… I ended up with something like this:

Which I should process via:

Which I didn’t want to do manually for each entry. But I remembered the session from Andreas Nick at the TecCon2018, where he showed examples about how to pipe the output of a command to a select grid. I’m not good at PowerShell at all, but I wanted to try it anyways. So after two hours of straight web research I ended up with the following code, which simplified this process a lot!

To explain each step in detail:

Line 1 Make PowerShell aware of the Citrix cmdlets.
Line 2 Switch to the Hypervisor Hosting connections of XenDesktop.
Line 3 Write the HostingUnitUid of the affected connection into a variable after a GridView Select.
Line 4 Create a list of all pending tasks and …
Line 5 Present it in a second GridView Select so you could delete all or selected tasks. The selection is being piped to the Remove command.

This will look similar to this:

In the Out-GridView you will first select the affected Hosting connection and in the second windows you will select all ProvTasks you may want to remove. Most of the time this will be all. There are certainly better ways to solve this, but the intend of this post is just to show you with how little work a repetitive task can be optimized with simple PowerShell tricks.

This worked great for me, but you should test this first!

Sometimes it can happen, that a ProvTask is “Running” and you can’t remove it. For this case I found a hint at discussions.citrix.com linked at the bottom.


This post was previously posted on mycugc.org.

Tablacus Explorer is an awesome replacement for explorer.exe as a #XenApp published Application!

In XenApp projects you always face the challenge to decide whether to deploy a published Desktop or different published applications for the users. Many times you will have to use a combination of both. Especially in the published application use-case, you have to find a way to allow your users manage their files with a file explorer. This might not be a problem for Fat-Client users with their Windows 10 Notebooks inside the corporate LAN. Those can simply run their local file explorer and access smb shares.

Continue reading “Tablacus Explorer is an awesome replacement for explorer.exe as a #XenApp published Application!”

Basic XenApp HDX 3D Pro Proof of Concept – What I missed

To proof the capability of XenApp to deliver 3D rendered applications, we build a very basic PoC. We took a used Lenovo ThinkCentre Tower PC with an Intel Core i5 and 4GB RAM and bought a used Nvidia Quadro 2000 for it. It is important to use a Quadro card, because this makes the driver installation much easier. We tried other cards in the first place, but it was just way too much work to get drivers for a Windows Server installation to work properly. Continue reading “Basic XenApp HDX 3D Pro Proof of Concept – What I missed”

Neue Version: Analyze and troubleshoot the logon duration via PowerShell

Im August 2015 hat sich ControlUp bei der Citrix Community sehr beliebt gemacht, indem sie ihr Script zur Analyse des Login Prozesses frei zur Verfügung gestellt haben. Im Dezember 2015 hat dann der Entwickler eine neue Version des Scripts angekündigt.

Continue reading “Neue Version: Analyze and troubleshoot the logon duration via PowerShell”

XenApp / XenDesktop 7.6 Components

Update 23.06.2015: Ergänzung Citrix Universal Print 7.6.2
Update 24.05.2015: Ergänzung Citrix Director 7.6.200
Update 20.05.2015: Ergänzung Citrix Universal Print 7.6

Ich habe eine Updatetabelle erstellt, für alle an XenApp 7.6 beteiligten Komponenten. Diese Liste umfasst momentan folgende Produkte:

  • Citrix XenApp 7.6 and XenDesktop 7.6 Delivery Controller (64-bit)
  • Citrix Studio 7.6
  • Citrix Director 7.6
  • Citrix Universal Print 7.6
  • Profile Management 5.x
  • Citrix StoreFront 2.x
  • XenApp 7.6 VDA Core Services for Windows Server OS (64-bit)
  • XenApp 7.6; XenDesktop 7.6 VDA Core Services for Windows Desktop OS (32-bit)
  • XenApp 7.6; XenDesktop 7.6 VDA Core Services for Windows Desktop OS (64-bit)

Die Tabelle gibt es diesmal in Bild und in Textform parallel.
Ergänzend dazu, gibt es die VDA Hotfixes für Server OS Worker, bei mir noch als Detailtabelle, da wir bei uns keine Desktop Worker einsetzen bisher.
Continue reading “XenApp / XenDesktop 7.6 Components”