Remko Weijnen's Blog (Remko's Blog)

About Virtualization, VDI, SBC, Application Compatibility and anything else I feel like


Earlier I described a SQL Query to get the Full Path of an Altiris Job, today I will describe how we can make a User Defined Function (UDF) in SQL so we can call it easier.

I am using an UDF because it allows us to specify parameters, in this case a single parameter (the EventId (or job id).

This is the SQL that creates the UDF:

Read the rest of this entry »


from CTX127541:

A cross-site scripting vulnerability has been identified in specific versions of Citrix Web Interface.

This vulnerability could potentially be used to execute malicious client-side script in the same context as legitimate content from the web server; if this vulnerability is used to execute script in the browser of an authenticated user then the script may be able to gain access to the authenticated user’s session or other potentially sensitive information.

This vulnerability affects all version 5.x Citrix Web Interface installations up to and including version 5.3.

So you should consider upgrading to version 5.4 which has a new look (again):

  • Filed under: Citrix

    I wanted to query the full path name of an Altiris Job, this sounds easier that it is though.

    Consider the following hierarchy:


    Now I want to assemble the full Path, in this case: RPA\Getronics\PKG_p007.Citrix_Components.

    Read the rest of this entry »


    I was trying to install a checked build of Windows 7 under VMWare Workstation but after the first reboot during the install (the completing installation step) the system came up with a BSOD.

    It can be fixed by adding a line to the VMX configuration file:


    piix4pm.smooth_acpi_timer = TRUE

  • Filed under: VMWare, Windows 7

    I remembered from a previous project that when the Citrix Web Interface this is caused by a setting called generatePublisherEvidence in the Aspnet.config file.

    This behaviour has been documented by Citrix in CTX117273.

    If you read it carefully you will see the note that you need to fix it in 2 places for an x64 system.

    If you know me a little than you have probably guessed I wanted to fix this with a nice script. I have chooses PowerShell this time because it has good support for XML and I made a one-liner so I can easily use it in an Embedded Altiris script.

    The script changes the config file for both x86 and x64:

    EDIT: If you run by commandline you need to care of quotes within quotes, easiest thing to do is to use double quotes (“) to surround the commandline and use single quotes (‘) for Strings inside the commandline:


    I did an unattended install of the Citrix WebInterface on a testmachine and it failed with error 258.

    The logfile clearly indicates the reason:

    [ ERROR ] com.citrix.wi.install.SetupErrorReporter: Error 258 occurred: ASP.NET 2.0 must be registered and enabled in Microsoft Internet Information Services before the Web Interface can be installed.

    We can register ASP.NET in IIS with the Aspnet_regiis.exe tool that comes with the .NET framework.

    The commandline would be:

    aspnet_regiis.exe -enable -ir

    We do need to make sure we are using the proper version of the tool (x86 or x64), I did that in the Embedded Altiris Script:

    Related Articles:

  • Filed under: Altiris, General

    This means you are installing the wrong edition, eg x86 version on an x64 OS.

    All available version are listed on the MSDN Visual J# Redistributable Packages page.

    Related: The case of the VMware vSphere Client


    A while ago I created a script that I can run as embedded script in Altiris that creates a Server Manager Answer File (for Server 2008).

    I could have simply done an echo >answer.xml but I wanted a well formed XML that could be read and displayed in an XML editor or Internet Explorer when needed.

    I use the Microsoft.XMLDom object in the script the create the XML and I think the code is easy to understand so I will just show it here: Read the rest of this entry »


    I did an unattended install of Java Jre1.6_0.22 using an mst file that puts all (auto)update properties to off.

    However it seems that Java simply ignores this, so usually a script runs after the install to the delete some registry keys and perform some extra configuration.

    With more recent Java versions it’s easier to simply uninstall the update component with the following commandline:

    msiexec /x {4A03706F-666A-4037-7777-5F2748764D10} /qb-

  • Filed under: Altiris, General, Java

    I was playing around with the AxSched tool that comes with Altiris, in my case the version that comes with v6.9 build 453.

    I could not make it connect to the Deployment Server from my test machine, it seemed like the /dsn parameter I used was totally ignored.

    I also tried the /d and /db parameters but they didn’t have any effect at all, the message was always:

    Error opening database connection:
    SQL Server does not exist or access denied.
    ConnectionOpen (Connect()).

    So I opened AxSched in Ida Pro and set a Breakpoint to the place where the SQL Connection seems to be made:


    Ida nicely hints us that the ConnectionString is in the ECX register so we only have to inspect it to see it’s value.

    Actually AxSched does several attemps and the used Connection Strings are:

    1. DRIVER={SQL Server};DSN=;SERVER=;Trusted_Connection=yes;
    2. DRIVER={SQL Server};DSN=;SERVER=;UID=sa;PWD=;Trusted_Connection=no;
    3. DSN=Altiris eXpress Database;
    4. DSN=Altiris eXpress Database;Trusted_Connection=yes;
    5. DSN=Altiris eXpress Database;UID=sa;PWD=;Trusted_Connection=no;

    So I bypassed by adding a DSN with the name Altiris eXpress Database and then it works.