Jump to content
Welcome to our new Citrix community!
  • Adding Client Printer Redirection for Citrix Workspace App for Mac and Linux to your Citrix Master Image


    cugcblogs

    marcohofmannrnd.png by Marco Hofmann, CTA

    hofmann1208-01-1024x221.webp

    Today I learned: Citrix Printer Redirection for Mac and Linux is not available Out-Of-The-Box on the Citrix Master Images I install. In this blog post, I will detail the steps I’ve taken to add this missing piece to all of my Master Images.

    Introduction

    Although quite rare in Germany, a few of our customers use MacBooks at home for the home office. Last week, a customer created a ticket reporting that he couldn’t print on his home printer, although printer redirection was allowed for him in Citrix Studio. At first, I suggested the usual troubleshooting steps, like updating the Citrix Workspace app for Mac and checking the local preferences of the app. Obviously, both didn’t help. I then checked the problem myself and didn’t find an obvious problem. A quick search then led me to two Citrix KB articles, which revealed a knowledge gap on my side:

    Client Printing from Linux/MAC is not available on Windows Server 2016 and 2019 (out of the box)

    The following Citrix knowledge base articles explain what’s necessary to activate that feature:

    1. CTX283355: Client Printing from Linux/MAC is not working on Windows Server 2016 and 2019
    2. CTX140208: Citrix Workspace App for Mac and Linux fail to Redirect Local printer to Citrix Sessions
    Summary of the knowledge base articles:
    1. Download the HP driver update for HP Color LaserJet 2800 Series PS driver from Microsoft Update Catalog.
    2. Inject the driver into the operating system.
    3. Add the printer driver to the printer driver store.
    4. The next time the user logs on, it will just work.

    Adding it to your Citrix Master Image

    At my company, we work with automated Citrix Master Images for Citrix Machine Creation Services (MCS). The Master Images are installed by the Microsoft Deployment Toolkit (MDT). We re-install the Master Images once a month. The real trick was to add these pre-requirements to our MDT task sequence.

    Inject Driver

    First, you have to get the required driver. Head over to Microsoft update catalog and search for HP LaserJet 2800. There are several search results, I decided on the following search result:

    hofmann1208-02-1024x221.webpMicrosoft update catalog.

    It has the id c29cfdf0-cb25-4251-a170-9b244a27d563, which is also mentioned in the first Citrix knowledge base article linked above.

    You’ll receive a cab file. Extract it with a program like 7-Zip to receive the necessary content:

    hofmann1208-03-1024x310.webp

    In the MDT Deployment Workbench, I created a new folder below Out-of-Box Drivers, which I called Printer Drivers:

    hofmann1208-04.webp.a16e579fe2352df5b0c2cce2308ac4ec.webp

    In the folder start the Import Drivers wizard, to import the driver into the Deployment share:

    hofmann1208-05.webp.01f0e5a3e7ed1c14e9a1473bb63b6c88.webpImportant Drivers

    The result should look like this:

    hofmann1208-06.webp.ad67df2d5983abe5b1b7f495983b3733.webpHP Printer prnhp002.inf 6.1.7600.16385

    Next, I created a Selection Profile below Advanced Configuration, so I can reference this exact folder during the MDT Task sequence:

    hofmann1208-07.webp.8ba300b9fe9ca573a85ae73debb86425.webpSelection Profiles

    And finally, the last step is to add an Inject Drivers step to your Task Sequence, to inject the driver into the Operating system:

    hofmann1208-08.webp.eec74f5fc4b91a2a70c80a735f6e1682.webpTask Sequence - Inject Drivers

    After this, the driver will be part of the Operating system of the Master Image, but it will not be available as a printer driver, yet.

    Install Printer Driver

    The last step is to actually install the Printer Driver, so it becomes available for printers to be used. The driver has to be listed here, to be functionally available for the Citrix Printer Redirection:

    hofmann1208-09.webp.3f7d8913491bb763f26285d93bd83b7d.webpPrint Server Properties: Driver

    Only one PowerShell command is required to achieve this, provided the driver has been properly injected into the operating system beforehand:

    Add-PrinterDriver "HP Color LaserJet 2800 Series PS"

    Therefore we create a new MDT Application:

    hofmann1208-10.webp.570f2aade07f8fc01e558154e2f1657e.webpNew Application Wizard

    The application looks like this and the content of the ps1 file is the PowerShell command mentioned above:

    hofmann1208-11.webp.3b8446913fe61294908e1bfaeb4abea0.webpApplication Network Printer Drivers

    The new application is then added to the Task sequence in the State Restore section:

    hofmann1208-12.webp.1396b3b66f941d0ad8ee453ce62bf954.webpTask Sequence

    Now we have everything in place we need.

    Result

    Now when I install a fresh Citrix MCS Master Image, the driver will be available and Citrix Printer Redirection for MacOS will work without problems:

    hofmann1208-13.webp.7cb7669484de738ba8199b70e4c68a28.webpPrint Server Properties: Driver

    That’s it! Feel free to leave me a comment if you have any questions.

     

    See more posts by Marco Hofmann here.

     

    Are you a member of CUGC? Join today and don't miss out!

    hofmann1208-01.webp.ad67d0f76ba3111ff758ba9482a4f628.webp

    hofmann1208-02.webp.3408bca46890086d31128e019ad85308.webp

    hofmann1208-03.webp.aec1e4406b03440878ca028f4932c677.webp


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...