RemkoWeijnen.nl

About Terminal Server, Citrix, Delphi and other stuff

Archive for the ‘Citrix’ Category

While browsing through my old projects folder I found a little commandline tool that I wrote about a year ago. I needed to detect a certain published application on a Citrix environment in the loginscript.

The tool detect the current Citrix published applicationname or if you are running Terminal Server aka Remote Desktop Services the Initial Program name and stores this in an environment variable (APPNAME).

There are no parameters and there are no special dependancies (such as MFCom).

CtxPubApp (33)
VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
convert this post to pdf.
  • 0 Comments
  • Filed under: Citrix
  • Yesterday I was troubleshooting why Workspace Control was not available on an HP t5540 (Windows CE) Thin Client. This was a Citrix Xenapp 5 environment on Server 2008. When logging in through the Web Interface from the Thin Client’s browser we noticed two things: Client Detection failed and the Reconnect and Disconnect buttons were not available: NoButtons I looked into the files in the webinterface folder (wwwroot/Citrix/XenApp)and searched for workplace and reconnect. I determined that the Client Detection is done in the nativeClientDetect.js (app_data/clientDetection/clientscripts). But what I saw was very strange:

    // Detect whether ICA Client is available.
    < %
    if ((sClientInfo.osWinCE() && sClientInfo.isIE())  || sClientInfo.osSymbian() ) {
    %>
            // It is difficult to reliably detect processor type for WinCE and Symbian Devices
        // and therefore to choose the right flavour of the ICA client.
        // Also, it is not possible to simply download and install ICA client for some of these devices,
        // e.g. WBTs. Therefore, we assume that ICA client is always available.
    
        function detectNativeClient() {
            return true;
        }
    

    (more…)

    VN:F [1.9.3_1094]
    Rating: 0.0/10 (0 votes cast)
    VN:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
    convert this post to pdf.
  • 2 Comments
  • Filed under: Citrix
  • Windows Vista introduced the Command Bar in Explorer which is sometimes also referred to as the Folder Band or the Task Band. The Command Bar is of course also present in Windows 7 and Server 2008 (R2).

    CommandBar

    This Command Bar shows possible tasks or actions depending on the active folder. I wanted to remove the “Uninstall or change a program” (in Dutch this is called “Een programma verwijderen of wijzigen”) button from the Computer view:

    CommandBarButton

    (more…)

    VN:F [1.9.3_1094]
    Rating: 0.0/10 (0 votes cast)
    VN:F [1.9.3_1094]
    Rating: +1 (from 1 vote)
    convert this post to pdf.

    I noticed that XenApp 5 Feature Pack comes with a new version of the Web Interface (5.2) (it is also available as standalone download). The parameters to install it in silent mode have changed but there’s no documentation at all on the Citrix Site:

    WIDocs

    (more…)

    VN:F [1.9.3_1094]
    Rating: 10.0/10 (1 vote cast)
    VN:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
    convert this post to pdf.
  • 0 Comments
  • Filed under: Altiris, Citrix
  • I needed to add a printer connection to a Citrix server but the problem was that this printer had a buggy driver. I wanted to use an alternative driver such as the Citrx Universal Printer driver but on Terminal Server you might want to use the Terminal Services Easy Print driver.

    So I decided to make something that could be used in both situations, the result is a small commandline tool called AddPrinter2 (sorry I am not good in finding original names).

    It takes 2 parameters: the printername as unc path and the driver name. An example would be:

    AddPrinter2 “\\server\printer” “Citrix Universal Printer”.

    (more…)

    VN:F [1.9.3_1094]
    Rating: 0.0/10 (0 votes cast)
    VN:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
    convert this post to pdf.

    A few days ago I noticed that an unattended installation of Citrix XenApp 5 was installing very slowly. When I looked at the various jobs and their installation time in the (Altiris) Deployment Server I saw that it was the Citrix Access Management Console that took almost 45 minutes to install:

    AMInstallation

    It was clear that this wasn’t normal since the install job is taking installing OS components like IIS and all subcomponents, activating Application Server and reboot in around 9 minutes. The installation of Citrix XenApp itsself takes only 14 minutes.

    I searched with Google and one of the first links was this knowledge base article from Citrix: Slow Access Management Console Installation on XenApp 5.0. The article clearly describes that the delay is occurred by failing checks for Publisher’s and Server Certificate Revocation (because there’s no Internet Connection) and suggests to turn these checks off. Indeed my servers do not have a direct internet connection so the cause and solution were clear.

    And actually I had seen similar issues before in other (non Citrix) installations, some examples are Exchange 2007 (here and here) and SQL Server 2008 (the SQL Installer actually checks if there’s an internet connection in the prerequisites check).

    The suggested, manual way, of turning of these checks is to clear the following checkboxes in Internet Explorer’s advanced settings Dialog:

    IECertificateRevocation

    But since I had to do this on many servers I decided it would be better to do it with a little VBS script.

    (more…)

    VN:F [1.9.3_1094]
    Rating: 0.0/10 (0 votes cast)
    VN:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
    convert this post to pdf.

    I was deploying an unattended installation of Citrix XenApp 5.0 with Altiris Deployment Server. The installation consists of several prerequisites, the installation of XenApp and finally the Citrix Management Consoles.

    The installation is performed with a special account and not the Local System account because the install packages are located on the network.

    When testing the deployment on a Windows Server 2008 I noticed that sometimes MSI based installations would fail with error code 1603 or 1601.

    (more…)

    VN:F [1.9.3_1094]
    Rating: 0.0/10 (0 votes cast)
    VN:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
    convert this post to pdf.

    Delegated Management Console

    In this topic I just want to show(case) you something I created in the past. It is a management console that enables delegated management in a Terminal Server or Citrix environment.

    The console is launched by a small executable that check credentials (based on group membership) and then launches an RDP session with the actual console in it. The logic behind it is that the RDP session runs with an account with delegated permissions in Active Directory and the actual user account that logs in here doesn’t have any permissions at all.

    This is the login screen:

    login

    If you’ve passed the login screen you enter the Main Console which consists of a Treeview on the left with possible options and a work area on the right:

    mainscreen

    (more…)

    VN:F [1.9.3_1094]
    Rating: 0.0/10 (0 votes cast)
    VN:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
    convert this post to pdf.

    Citrix Desktop Switcher

    A while ago I wrote a small tool to assist in switching between a Full Screen Citrix Desktop and the local desktop. By default the Citrix client can switch from full screen to windowed mode (with the SHIFT F2 hotkey) but it doesn’t minimize the window automatically. So this always requires manually minimizing, do your local work, give focus to the Citrix client again and press the hotkey again to return to full screen.

    My idea was really simply: we write a little exe that runs locally and registers the SHIFT F2 hotkey. When the Hotkey is pressed we determine if we are in full screen or in windowed mode and reverse that. When going from Full Screen to Windowed we minimize the Citrix Client and notify the user (by balloon tip) that he is on the local desktop. I called it the Citrix Desktop Switcher (sorry I couldn’t come up with a more original name)

    So let’s see it in action!

    When you start the Citrix Desktop Switcher you are notified that the tool is running (it doesn’t matter when you start the Switcher, you can start if even if the Citrix Session is already running).

    Balloon1

    (more…)

    VN:F [1.9.3_1094]
    Rating: 0.0/10 (0 votes cast)
    VN:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
    convert this post to pdf.
  • 4 Comments
  • Filed under: Citrix
  • As you might know Microsoft distributes updates and hotfixes with in installer, update.exe. When you run update.exe it looks into the supplied .inf files to see what it has to install. It’s not possible to make changes to the inf files however because that will invalidate it’s signature (and update.exe checks the signature that is stored in an accompanying .cat file).

    In my case I wanted to deploy the MUI pack for Internet Explorer 7 to be able to support multiple languages. By default this pack installs 35 (!) languages and I wanted to install only Dutch language on top of existing English.

    (more…)

    VN:F [1.9.3_1094]
    Rating: 0.0/10 (0 votes cast)
    VN:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
    convert this post to pdf.

    Paypal Donation

    Amount:
    Website(Optional):


    Categories


    Archives


    Views


    Tags

    bug Business Citrix datastore dsn error error 26009 Installation Java jre jvm LinkedIn Objects referall was returned SasLibEx script slow Switch Terminal Server TSAdmin TSAdminEx Unattended VBS Versions Vista Windows Vista WLAN WTSWaitSystemEvent wts_event_flush

    Blogroll