About Terminal Server, Citrix, Delphi and other stuff
I had a very interesting issue today on a new Citrix XenApp 5 farm. We went into production yesterday and we noticed a number of issues:
I took a look at the profiles first and noticed that the size growth was due to a Xerox subfolder in %APPDATA%:
An even bigger problem is the huge amount of files in this folder (almost 9000) which of course causes the delay in the logon (while the server is loading the profile).
This is very bad considering that this driver, the Xerox Global Print Driver is advertised by Xerox as the Terminal Server/Citrix ready printer driver!
What makes it even worse is that the driver exhibiting this bug, is still the one offered for download on the Xerox Site.
For the record: I found this bug in version 5.185.19 dated oct. 14, 2010 in the PCL5 and PCL6 versions for both x86 and x64.
The good news is that I found a newer version that was linked on the Xerox forum, version 5.185.32 dated jan. 5, 2011.
I tested this version and the bug was fixed there, I cannot yet tell if the CPU Spikes issue was also fixed.
Here are the links:
But after installing this driver we also need to cleanup the (roaming) profiles to get rid of the Xerox folder.
I wrote a very simple PowerShell script for that:
$Share = "\\ADNRD01\TSProfiles$"
$Xerox = "\Application Data\Xerox"
foreach ($Folder in gci $Share)
$Path = [System.String]::Concat($Folder.FullName, $Xerox)
if (Test-Path $Path)
Remove-Item $Path -Recurse -Force
.NET .NET FrameWork Active Directory Altiris Automation Manager bug Citrix datastore Dell Delphi Excel Exchange Exchange2003 Exchange2010 Hack HP iOS Java LinkedIn Linux Lync Office Office 2010 Outlook Passat Password PowerPoint PowerShell RES RNS510 SasLibEx Security Terminal Server ThinApp TSAdminEx Unattended VBS VCDS Vista Visual Basic VMWare Volkswagen Windows PE Wordpress XenApp