CitrixTools.Net Articles

Current Articles | Categories | Search | Syndication


Scripting

Programmatically Purge Logs Files on an Age Basis

Looking for Automation of Maintenance tasks, I've had to write a script that'll run as a scheduled task to Purge Log Files, but only logs older than a specified number of days.

Googling to find if that kind of script already exists I've found a nice blog with some example I've used to start.

I've worked on this script to adapt it to my needs and came with two new scripts.

These new scripts have been designed to run as Scheduled Tasks so they're logging everything within the Application EventLog ...

posted on Saturday, August 29, 2009 4:33 PM by Pierre Marmignon in Scripting, Tech Tips Article Rating1 Comments 4376 Views

Publish an Application that needs a parent process

Another experience from the field ...

Deploying applications on XenApp, You may have faced this kind of issue : an application is working fine within a published Desktop, but is not launching when published seamless.

In many cases (although it can also be related to a seamless issue), this is because the Application needs "explorer.exe" running (which is the case in a published desktop but not within a published application).

To deal with this problem, you can ...

 

posted on Wednesday, August 26, 2009 8:50 PM by Pierre Marmignon in XenApp, Scripting, Terminal Server, Tech Tips Article Rating0 Comments 8408 Views

Programmatically Uninstall Citrix Clients

During migrations you may have had to upgrade the XenApp client to its latest version.

To do so, it is often better to uninstall the previous clients before installing the new one.

To automate this task I've written two little scripts that are shared through this article.

Be careful when using them and be sure to test them before releasing them to production.

As always this content is provided as is and using it is at your own risks.

This first script has been designed to remove ...

 

posted on Monday, August 17, 2009 11:29 PM by Pierre Marmignon in XenApp, Scripting, Tech Tips, XenDesktop Article Rating0 Comments 13856 Views

Getting rid of the Found New Hardware Prompt when using Device HardDisk Cache with Citrix Provisioning Server

Working with Citrix Provisioning Server, you may have encountered the issue of having a "Found New Hardware" prompt when using Cache on Device Hard Disk.

When provisioning XenApp Servers, this issue's impact is minimized because only Administrators can see the popup.

When it comes to provisioned Desktops, all users are seing the message at every logon, so it's important to find a way to fix it.

Citrix is providing an old Ardence Tool to manage this issue but in somes cases it does not work.

The prompt is related to a new Hard Disk Signature found (actually the Local HD used for cache) and detected as a new hardware by the system.

To detect an Hard Disk, Windows is using a Disk Signature that is stored into the registry. If a new signature is detected, then the prompt is raised.

To overcome this issue, the solution is to ...

posted on Sunday, August 16, 2009 3:43 PM by Pierre Marmignon in Scripting, Provisioning Server, Tech Tips Article Rating2 Comments 8698 Views

Programmatically rename XenApp AutoCreated Client Printers

Working on a XenApp project where we had to deploy an SAP Module, I had to work on renaming the autocreated client printers to remove spaces and shorten names.

To do so I've written a little vbs script using WMI to access the printers and rename them according to the SAP module requirements.

Note : The main purpose of this article is to explain how to run such a script with a standard user's account (without having to do a runas task requesting an admin account).

posted on Friday, August 14, 2009 9:20 AM by Pierre Marmignon in XenApp, Scripting, Tech Tips Article Rating4 Comments 7318 Views