Remko Weijnen's Blog (Remko's Blog)

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


3,103 views

I usually change the text below the “This Computer” icon to reflect the current username and servername:

UserOnComputer

This is an ancient trick, just set the the LocalizedString Value of the following key:

to “%USERNAME% on %COMPUTERNAME%”.

It get’s a little more complicated if you want to set this from a script, because the environment variables are replaced with the actual value BEFORE they are entered in the Registry.

Read the rest of this entry »

1,307 views

If you read MSDN documentation for LSA_OBJECT_ATTRIBUTES you will think it’s defined in LsaLookup.h:

MSDN

And that it’s supported since Windows 2000 but I couldn’t find it in this header file.

Instead I found it in NTSecAPI.h, so I decided to check the different SDK versions and starting from SDK v7 LsaLookup.h exists but in earlier SDK’s (v5.0, v6.0a and v6.1) there is no LsaLookup.h.

  • 0 Comments
  • Filed under: Programming
  • 3,001 views

    Last time I showed a User Defined Function to the Full Path of an Altiris Job given it’s id (event_id). Note that Altiris calls a Job an Event so the terms Event and Jobs are interchangeable here.

    To complete it we first need to prepend the server and share name to the path.

    I looked into the Altiris database tables to find the best place to get the servername and it seems that the hostname column of the mmsettings table is a good way.

    In my database there was only one row in the table but I restrict the results by adding top 1:

    Then I looked into the available tokens for one that returns a job id but we can only return a job name or a computer id. Since a job name is not unique I decided to use the computername and find the active job for this computer.

    When a Job is scheduled an entry is added to the event_schedule table. If you look into this table you will notice a column status_code which is NULL initially and when the job start it will get a value of -1 which indicates the job is active.

    When the job has finished the status will always be 0 or higher. Read the rest of this entry »

    1,745 views

    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 »

    3,152 views

    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):
    CtxWi54ScreenShot

  • 0 Comments
  • Filed under: Citrix
  • 3,191 views

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

    Consider the following hierarchy:

    Tree

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

    Read the rest of this entry »

    2,797 views

    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

  • 2 Comments
  • Filed under: VMWare, Windows 7
  • 2,226 views

    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:

    5,453 views

    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:

  • 0 Comments
  • Filed under: Altiris, General
  • 1,627 views

    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

    Blogroll


    Categories


    Archives