Showing posts with label xendesktop. Show all posts
Showing posts with label xendesktop. Show all posts

July 22, 2020

Don't Use Your Physical Image in Your Virtual Environment


Are you using SCCM, WDS or other deployment tools or have been asked to when deploying your virtual desktops or virtual application servers? If so, there can be some serious issues with this. I am often asked about by folks wanting to deploy Citrix or VMware Horizon images using the same image that is used for physical endpoints. Not only is this a bad idea, it can present performance ramifications and also make it so that best practices are not followed.

I always have been a believer that hand building the operating systems for virtual desktops and application delivery servers is the best approach because it ensures we know what went into the image. I understand the grips of manually installing the applications and the extra work but the extra work now can save a lot of headaches later and the reason of "this is how we build out images" is not a good enough reason to justify using the same image in the virtual environment.  Often and in most cases the deployment person and the virtual desktop environment are not the same person. They build images on physical endpoints or on a completely different hypervisor, they never optimize the image and just let things fly. Since these are physical endpoints they have dedicated hardware and rarely if ever do they experience any issues from being unoptimized. In the datacenter, on a virtual desktop or an application delivery server which share host resources with other virtual machines we need to optimize things as much as possible.

Here are two examples of recent environments where there were issues with using SCCM to deploy the same image as physical endpoints:

  1. First was in the medical field and the customer wanted to move from persistent Windows 10 desktops to pooled non-persistent virtual desktops as the administrative overhead of having a persistent desktop and having to administer the desktops with deployment tools was not feasible. Also, when presented with justifying the need of having a persistent desktop pool and having the response be “that is how we have deployed it before” there really was no reason to have it. When it came time to build the Windows 10 non-persistent image, the customer completely disregarded my suggestion on building the Windows 10 base image by hand and used WDS to deploy the “standard” image that is deployed on physical endpoints. The end result was that a known bug in the image in which the start menu stopped responding to left clicks. This bug also existed on physical endpoints but was hacked around by copying profiles over the default profile but when this was done on the non-persistent desktop image, it caused Citrix Profile Management to create temp profiles on each login. After countless days of the customer trying to remediate this, the only successful way to do so was to break out the iso and install the operating system by hand and manually installing the applications and everything is functioning correctly. 
  2. A second example of this was a large law firm migrating from an on-prem Citrix environment to VMware Workspace ONE. When it came time to build their images for the RDS Linked Clone pool they stressed a need to use an existing task sequence that was built for Windows 10 and force it to target a Window Server 2016 operating system. The issue here is that applications were installed before the RDS Session Host role was installed afterwards. It has commonly been a known and best practice for RDS Session Hosts servers that the RDS Session Host role to be installed prior to installing applications due to the need to potentially capture applications settings into the RDS shadow key. In this environment, there are small abnormalities in application behavior even today due to the incorrect installation sequence.

Long story short, when building the images for your virtual desktops and application delivery servers be careful how you approach this. As the common adage is "you can’t build a house on a bad foundation" and doing things incorrectly could lead to a bad user experience.

Johnny @mrjohnnyma

July 6, 2020

Citrix License Usage Insights

Purpose

This article describes a new Citrix Cloud service, License Server Usage Insights, that is available to all Citrix Virtual Apps and Desktop customers. Read on to find out why I think this is a big deal especially for customers that that have not transitioned to Citrix Cloud subscription licensing (aka own perpetual licenses).


Trend View: day view but month and year available


Symptom

If you have a single on-prem Virtual Apps and Desktops license server OR have completely transitioned to the Virtual Apps and Desktops service then this new on-prem License Usage Insights may not be for you because Studio gives you a good view of license consumption.

This new service may be beneficial if you have a larger environment that has gotten complicated over the years and there is not a simple answer to, "how are we doing on Citrix licenses?".

Beneficial Scenarios

  • You are a Citrix architect or admin and use Excel to calculate Virtual Apps and Desktops license usage across your enterprise
  • Or you have more than one license server (for whatever reason)
  • Or you have license servers in completely separated Active Directory forests
  • Or you have more than one license type and this includes both Virtual Apps vs Virtual Apps and Desktops OR you own both concurrent and user/device licensing
  • Or your management likes to see pretty graphs of Citrix consumption from time to time
  • Or you would like to give someone in your organization access to consumption but do not want to give them RDP access to the actual Citrix license servers
  • Or you spend time logged into citrix.cloud.com and it would be more convenient to view license consumption there

Resolution

If one or more the scenarios above apply to you then read on. License Server Usage Insights connects your on-prem license server(s) to Citrix Cloud. It can then aggregate usage from across many license servers and present them in a pretty dashboard.

Setup

  1. Upgrade your license server. You will need to be running version 11.15.0.0 or newer. Download the license server here https://www.citrix.com/downloads/licensing/. Upgrade instructions https://docs.citrix.com/en-us/licensing/current-release/upgrade.html
  2. Enable Call Home on the license server.  If you do not have this enabled you will not get the blue "Register" button shown in the screenshot below. See the link in the next step for the details.
  3. Register the license server with Citrix Cloud https://docs.citrix.com/en-us/citrix-cloud/citrix-cloud-management/citrix-cloud-on-premises-registration.html
  4. Wait 24 hours for it to report in the first time. This is a very important step.
  5. Login to citrix.cloud.com and check. As mentioned above, no matter how many times I refreshed the page, it did take 24 hours to populate. Click on the menu on the left and choose Licensing.

You didn't think I would show a real code?


Click Register


FWIW, Citrix license server upgrades were a standard practice back when I was consulting anytime I was upgrading anything in the environment. Not only would you typically get security improvements and bug fixes but it would ensure that a component upgrade would not get halted due to newer license server requirements.

That is all there is to it. I hope this gives you better visibility into your environment.

SageLike Post ID: SL0025

Applies to:

References:

Brian @sagelikebrian

June 15, 2020

Virtual Apps and Desktops in 2020

My colleagues Mayank Singh and Rob Beekmans, both Architects in Technical Marketing, packed a ton of good information into this video If you want to see what's new with Citrix Virtual Apps and Desktops, Citrix Managed Desktops, and Citrix SD-WAN in 2020 (so far) and have 91 minutes, I recommend watching the whole thing. Here are a few demos and sections that I want to provide shortcuts to.
 


 
Microsoft Teams Optimization Browser Content Redirection (BCR)
  • Browser Content Redirection renders whitelisted webpages on the endpoint and seamlessly feeds it back into the session.  Offloading video rendering to endpoints provides both a great user experience as well as reduces backend VDA resources.
  • Supported VDA browsers: Internet Explorer, Chrome, and Edge (new Chromium). Edge is in Tech Preview.
  • Overview and configuration starts here https://youtu.be/UcEmqQjdQUY?t=2925
  • Configuration and demo video of watching YouTube without and with BCR https://youtu.be/UcEmqQjdQUY?t=3250
  • Learn more in Citrix Docs
FSLogix and Office 365
  • FSLogix will only save data for a single session. It does not support accessing multiple sessions and consolidating to its profile container. Use Citrix User Profile Manager to write back profile data to FSLogix when accessing more than one session at a time https://youtu.be/UcEmqQjdQUY?t=1985

Machine Creation Services (MCS)
  • What is it and how does it work? https://youtu.be/UcEmqQjdQUY?t=656
  • Machine Creation Services Input-Output (MCSIO). Deeper dive into MCS workings. It was revamped in version 1903 for on-prem hypervisors and Azure. Allows for placement of the master and caching disk on different storage. This allows you to use HDD (vs SSD) which scales higher (more users per machine) and provides better response time for users https://youtu.be/UcEmqQjdQUY?t=1239
  • Publishing an app or desktop using Citrix Managed Desktop (Citrix TechZone) and MCS.  Keep in mind Managed Desktops has a simplified web wizard vs Studio https://youtu.be/UcEmqQjdQUY?t=754
  • Azure on-demand provisioning using MCS. It creates machines on power-on which means you only pay for what you use. Overview and demo using Apps and Desktop Service https://youtu.be/UcEmqQjdQUY?t=1073
Citrix App Layering
Business Continuity


I hope this furthers your understanding of what's new in Citrix Virtual Apps and Desktops.  Stay tuned for a bunch of exciting announcements in the second half of 2020.

September 25, 2019

XenApp and XenDesktop 7.15 Plus

Citrix released the second Long Term Service Release (LTSR) in the company's history on August 15, 2017. This was a hallmark release in our mind because it closed nearly every feature gap of the wildly successful XenApp 6.5 release. At the same time, it was built on the new Flexcast Management Architecture (FMA) which provided customers with much in terms of choice and security.

Our ambitious plan for this article is to detail the new features and enhancements of each of the quarterly Current Releases (CR). In order to make this more readable, we are putting the full details including things like embedded videos into a separate post. Consider this a living document that will be updated over time to create a single searchable list. Check back here as we add the rest of the Current Releases. Please drop us a comment if we missed something.


Brian @sagelikebrian and Josh @virtualjoshespi

Releases
    Released February 27, 2019 - End of Life August 27, 2019

    Citrix Docs | Citrix Product Lifecycle Matrix | Find more details at XenApp and XenDesktop 7.17


    User eXperience:
    • High Definition compression support for 64-bit webcam applications.
    • Watermark your desktop or app independent of the endpoint with this new controller and VDA. My Summit 2018 article has an image of a watermark on a Chromebook (SageLike.com).
    • Webcam compression for 64-bit applications like Skype, GoToMeeting, and others on VDA.
    • NVENC hardware encoding in combination with codec for actively changing regions supported in VDA with NVIDIA GPUs.
    • ThinWire now includes higher compression (~15%) MDRLE encoding which replaces 2DRLE on supported VDAs. "What's New with Workspace in February 2018" has more details (Citrix Blogs).
    • Linux support for Pascal GPUs, pass through authentication with smart cards, dynamic keyboard layout synchronization, adaptive transport (Citrix Blogs).
    • Show or hide the remote language bar
    Admin eXperience:
    • Azure Managed Disks to be used automatically by MCS starting with this controller.
    • Federated Authentications Services now stores info in an embedded database versus the registry.
    • Controller improvements to double-hop scenarios (launching apps in a published desktop). If the app is available in the desktop it will launch it as local vs a new session.  Read "Session Sharing Between a Published Desktop and a Published App Made Easy" (Citrix Blogs) for more information including making this work on previous versions.
    • Content redirection blacklist supported on VDA. Also, a new controller policy to prevent failback to server render.
    • Director now supports PIV smart card authentication.
    • Session Recording improvements to event logging (Citrix Blogs).
    Deprecation and Platform Support:
    • StoreFront support for TLS 1.0 and 1.1 protocols between XenApp and XenDesktop and Citrix Receiver and Citrix Workspace Hub (see CTX232266.
    Released November 28, 2017 - End of Life May 28, 2018

    Citrix Docs | Citrix Product Lifecycle Matrix | Find more details at SageLike.com XenApp and XenDesktop 7.16




    User eXperience:
    • High Definition webcam support.
    • Expanded tablet mode in Windows 10 using Windows Continuum.
    • Adaptive transport enhancement. By default, adaptive transport is now enabled (Preferred), and EDT is used when possible, with fallback to TCP.
    • Browser content redirection. Redirects the contents of a web browser to a client device with a corresponding browser embedded within the Citrix Receiver. See (Citrix Docs) for more information.
    • HDX H.265 encoding. Requires an NVIDIA GPU. Read more, "H.265 Encoding Now Available for XenDesktop Using NVIDIA GPUs" (Citrix Blogs). Requires Receiver for Windows 4.10 and must be enabled. Requires a Platinum license.
    • Unicode keyboard mapping. Without the registry setting, if a user changes the local and the server keyboard layouts, the keyboards might not be in sync and character output is wrong.
    Admin eXperience:
    • HDX 3D Pro is detected automatically during VDA setup.
    • MCS support for on-demand provisioning with Azure Resource Manager.
    • Support for App-V 5.0 deployment configuration files in single admin method and support for shortcuts in App-V packages.
    • Access Monitor Service data uses version 4 of the OData API.
    • Shadow Linux user sessions running RHEL 7.3 or Ubuntu 16.04. Director connects via noVNC.
    • HDX Insight integration of a new NSAP virtual channel. Nick, from Citrix Consulting, is calling this integration, "HDX Insight 2.0" (Citrix Blogs).
    • Applications analytics added to Director. It provides a consolidated view of the health and usage of all published applications. It shows metrics like the number of instances per application and faults and errors associated with the applications.
    Deprecation and Platform Support:
    • VDA desktop OS support: Windows 10 1607 or newer. For support of older operating systems (Windows 7, Windows 8) use the 7.15 VDA.
    • VDA server OS support: Windows Server 2012 R2, Windows Server 2016 (also supports server VDI). For support of older operating systems (Winddows Server 2008 R2, Windows Server 2012) use the 7.15 VDA.

September 24, 2019

XenApp and XenDesktop 7.17

Released February 27, 2018 - End of Life August 27, 2019

Citrix Docs and Product Lifecycle Matrix

To see all Current Release features since the last Long Term Service Release (7.15 LTSR) see XenApp and XenDesktop 7.15 Plus



User Xperience:
  • Watermark your desktop or app independent of the endpoint with this new controller and VDA. My Summit 2018 article has an image of a watermark on a Chromebook (SageLike.com).
  • Webcam compression for 64-bit applications like Skype, GoToMeeting, and others on VDA.
  • NVENC hardware encoding in combination with codec for actively changing regions supported in VDA with NVIDIA GPUs.
  • ThinWire now includes higher compression (~15%) MDRLE encoding which replaces 2DRLE on supported VDAs. "What's New with Workspace in February 2018" has more details (Citrix Blogs).
  • Linux support for Pascal GPUs, pass through authentication with smart cards, dynamic keyboard layout synchronization, adaptive transport (Citrix Blogs).
  • Show or hide the remote language bar
Admin Xperience:
  • Azure Managed Disks to be used automatically by MCS starting with this controller.
  • Federated Authentications Services now stores info in an embedded database versus the registry.
  • Controller improvements to double-hop scenarios (launching apps in a published desktop). If the app is available in the desktop it will launch it as local vs a new session.  Read "Session Sharing Between a Published Desktop and a Published App Made Easy" (Citrix Blogs) for more information including making this work on previous versions.
  • Content redirection blacklist supported on VDA. Also, a new controller policy to prevent failback to server render.
  • Director now supports PIV smart card authentication.
  • Session Recording improvements to event logging (Citrix Blogs).
Deprecation and Platform Support:
  • StoreFront support for TLS 1.0 and 1.1 protocols between XenApp and XenDesktop and Citrix Receiver and Citrix Workspace Hub removed (see CTX232266).

September 17, 2019

Citrix MCS - Automate Master Image vCenter Update

Purpose:
This post is to share a Citrix MCS / VMware PowerShell script I created over the last year or so to automate the process of renaming a master image (Win2K16 or W10), converting it to a template, cloning the template and creating a snapshot of the clone in preparation for MCS updates.

You can use this script if you have a single datacenter or if you have multiple. It's relatively easy to modify it so the master image is copied to multiple vCenter datacenters/clusters and follows the same process.

I currently have 9 different datacenters/clusters running the same master image. I just maintain the core master image in the primary datacenter, perform updates, shutdown, run this script and once the process is done I can update each machine catalog one by one from the same master image.

Download the script from Citrix ShareFile

SageLike Post ID: SL0023

July 31, 2019

XenApp and XenDesktop 7.16

Released November 28, 2017 - End of Life May 28, 2018

Citrix Docs and Product Lifecycle Matrix




User eXperience:
  • High Definition webcam support.
  • Expanded tablet mode in Windows 10 using Windows Continuum.
  • Adaptive transport enhancement. By default, adaptive transport is enabled (Preferred), and EDT is used when possible, with fallback to TCP.
  • Browser content redirection. Redirects the contents of a web browser to a client device with a corresponding browser embedded within the Citrix Receiver. See (Citrix Docs) for more information.
  • "H.265 Encoding Now Available for XenDesktop Using NVIDIA GPUs" (Citrix Blogs). Requires Receiver for Windows 4.10 and must be enabled.  If the GPU at the endpoint does not support H.265 decoding using the DXVA interface, the Citrix Receiver for Windows H.265 Decoding for graphics policy setting is ignored and the session falls back to using the H.264 video codec.  Requires a Platinum license. See Receiver 4.10 for more information (Citrix Docs).
  • Unicode keyboard mapping. Without the registry setting, if a user changes the local and the server keyboard layouts, the keyboards might not be in sync and character output is wrong.
Admin eXperience:
  • HDX 3D Pro is detected automatically during VDA setup.
  • MCS support for on-demand provisioning with Azure Resource Manager.
  • Support for App-V 5.0 deployment configuration files in single admin method and support for shortcuts in App-V packages.
  • Access Monitor Service data uses version 4 of the OData API.
  • Shadow Linux user sessions running RHEL 7.3 or Ubuntu 16.04. Director connects via noVNC.
  • HDX Insight improvement.  Integration of the new NSAP virtual channel. Nick, from Citrix Consulting, is calling this, "HDX Insight 2.0" (Citrix Blogs) but 7.17 recommended (CTX239748).
  • Applications analytics in Director. It provides a consolidated view of the health and usage of all published applications. It shows metrics like the number of instances per application and faults and errors associated with the applications. Requires Delivery Controller version 7.16 or later and VDA version 7.15 or newer.
Deprecation and Platform Support:
  • VDA desktop OS support: Windows 10 1607 or newer. For support of older operating systems (Windows 7, Windows 8) use the 7.15 VDA.
  • VDA server OS support: Windows Server 2012 R2, Windows Server 2016 (also supports server VDI). For support of older operating systems (Winddows Server 2008 R2, Windows Server 2012) use the 7.15 VDA.

May 14, 2019

Citrix Product Editions 2019

In the summer of 2018, Citrix set out on the most ambitious rebranding of products arguably since changing Presentation Server into XenApp. You can read more about it in a previous SageLike.com article, "Citrix Product Names 2019".

At the same time this happened, product editions also were changed.  On one hand, if old editions are engrained in your memory (like me) then it could cause confusion. On the other hand, the new editions have also been unified across solutions so all teams will be speaking the same language.

There is also the reality that the old editions will live on as they are hardcoded into software created pre-summer 2018.  It would be most noticeable in an old license server version but keep this into consideration if you are doing an upgrade.




Here is the breakdown for the old and new edition names.  Please note, the edition names are the same for both virtualization and networking solutions.


Citrix Virtual Apps and Desktops
Standard
Advanced
Premium
Standard
Enterprise
Platinum


For the newest information,
always check out (Citrix.com)



Citrix ADC
Standard
500 universal licenses*
Advanced
1000 universal licenses*
Premium
unlimited universal licenses*
Standard
5 univeral licenses
Enterprise
5 universal licenses
Platinum
100 universal licenses
* requires firmware 11.1 build 49.16 released September 2016 (FAQs)

For the newest information,
always check out (Citrix.com)


2018 also saw the creation of new bundles that combine brand new solutions with existing offerings.  Today, there are three Workspace editions that combine some of the solutions above with new offerings like Access Control and Analytics.


Citrix Workspace
Standard
Premium
Premium Plus


For the newest information,
always check out (Citrix.com)


Brian @sagelikebrian


See also:
"Citrix Product Names 2019" (SageLike.com)

February 25, 2019

Citrix Product Names 2019

You can scroll down for some of the background information but let's jump right into it.


The Cheatsheet
Formerly Known As
Current
App Layering, Unidesk Citrix App Layering
Provisioning Service, PVS Citrix Provisioning
NetScaler Citrix ADC
NetScaler AppFirewall Citrix Web App Firewall
NetScaler Gateway, Access Gateway,
Unified Gateway, CAG
Citrix Gateway
NetScaler Management and Analytics System Citrix Application Delivery Management
NetScaler SD-WAN Citrix SD-WAN
ShareFile Citrix Content Collaboration
StoreFront StoreFront
Receiver Citrix Workspace app
Workspace Environment Management, Norskale Citrix Workspace Environment Management
XenApp, Presentation Server, MetaFrame Citrix Virtual Apps
XenDesktop Citrix Virtual Apps and Desktops
XenMobile Citrix Endpoint Management
XenServer Citrix Hypervisor


Ten years ago @gabeknuth wrote "XenApp" is brilliant! about getting rid of the Presentation Server name.  Not everyone was happy because let's face it, change is hard, but it did unify a bunch of the major products.  Over time, everyone got used to and even grew to love the Xen moniker.  In the summer of 2018, Citrix set out on the most ambitious rebranding of products arguably since changing Presentation Server into XenApp.

[Citrix] + [what the solution does]

There is a different kind of naming unification going on now.  In my opinion, it is because products are unifying into integrated solutions.  The cheat sheet above should help you translate the old to the new but possibly more helpful is to know the formula.  The formula above is simple enough.  One of the best examples of this is XenMobile changing to Citrix Endpoint Management.  It is better because Endpoint Management manages not only traditional mobile smartphones like Apple iOS and Google Android but also MacOS, Chrome OS, Windows 10 and more.  For more information, see this product guide.

It will take time to get used to the new naming.  If you are talking to a Citrix employee or partner, feel free to use the old name--we'll know what you are talking about.  On the flipside, you may hear employees using the new names (and we are being encouraged to)--feel free to ask for clarification and we will be happy to translate.  2018 also brought new product edition names.  For more information on those changes, stay tuned for another blog post.



Brian @sagelikebrian

November 2, 2018

Citrix PVS - Automate PVS Target Device and VM Creation

Purpose:
This post is to share a Citrix PVS / VMware PowerShell script I created over the last year or so to automate the creation of additional VM's in VMware and create the PVS devices, assign them a PVS image, a PVS site, add them to the domain and then add the vDisk to the new devices. I have transitioned jobs since I first wrote this script so I haven't updated it in a few months but figured it would be helpful to some out there

SageLike-PVS-VMware-Script


SageLike Post ID: SL0020

Applies to:
Citrix Provisioning Server
Citrix XenApp
Citrix XenDesktop
VMware ESXi

March 1, 2017

XenDesktop The Registration Was Refused Due To No Reason Provided

Purpose:
This post addresses a XenDesktop VDA registration issue with an obscure registration error.

Symptoms:
XenDesktop VDA's will not register to XD Controller and receives the below errors in the event log

The VDA registration process results in a error, Event ID 1023, with a message

"The Citrix Desktop Service was refused a connection to the delivery controller 'xdcontroller.domain.local' (IP Address 'xxx.xxx.xxx.xxx').

The registration was refused due to 'No Reason Provided'."

The Server or Desktop VDA may have been running for quite some time before this error appears and it seems to be linked to an HDX policy update

Resolution #1:

Ultimately this turned out to be a policy update issue. These machines were migrated from a XD 5.6 environment to a 7.x environment. After the HDX policy update the VDA would not accept the policy update and would fail to register to the controller. The ultimate fix was to determine where all the group policies are stored on the machine when it does do the application of the group policy. I found these directories: C:\ProgramData\Citrix\GroupPolicy & C:\ProgramData\CitrixCseCache:

Citrix Group Policy ProgramData 

 

First stop the Citrix Group Policy Engine (citrixcseengine). Then delete the contents of these directories (you’ll need administrative rights to do this), run a gpupdate /force and then perform a reboot.

After the reboot the registration of the server and the application of the HDX policies applied correctly

Resolution #2

Use the Citrix VDA Removal Utility to completely remove the VDA then reinstall the VDA. This will wipe out all of the settings and configs on the server and reapply everything

https://support.citrix.com/article/CTX209255

Cause:

It seems like the updated HDX policies were conflicting with the ones cached on the local machine. Clearing out the cache and forcing an update addressed the issue.

SageLike Post ID: SL0013

Applies To:
 XenDesktop VDAs that were migrated from XenApp 6.5 or XenDesktop 5.6 environments to XenDesktop 7.x

Windows 7
Windows 2008 R2
XenApp
XenDesktop

December 13, 2016

Windows Update Never Stops Checking

Purpose:
This post explains how to fix an issue with Windows Update on Windows 7 x64.

Symptom:
My master (aka gold) Windows 7 virtual machine has been woefully in need of some updates.  The master image has been shutdown for several months because the XenDesktop catalog that relies on it has also been shutdown for months.  Returning my focus to Windows 7, I turned on the master image and ran Windows Updates.  Not wanting to watch paint dry, my attention drifted elsewhere and it ended up being a few hours before I returned to Windows Update.  It was still checking for updates.  I rebooted the machine and it happened again.

Resolution:
I am fairly certain this has happened to me before so; of course, I Bing'd it.  After digging around awhile, I found a forum entry suggesting to try KB3172605 or for x64 KB3172605.  I downloaded the patch directly from Microsoft and put it on my C drive.  Running the patch brought the Windows Update dialog up again and it started checking for updates which is not what I wanted to see.  Reboot and try installing the patch--you may even want to run it as an administrator.  After rebooting again, the patch successfully installed and Windows Update quickly returned with 34 new important updates (1.6 GB).



Cause:
Let us be honest here, this is Windows Update and from time to time it has issues.  At this time, Windows 7 has hundred and hundreds of updates and that assuming you are starting from Service Pack 1.  I am not confident that this is reproducible but it seems worth sharing with others. I am confident that this is not the last time I will run Windows Update on Windows 7 or even build a new master image.

Drop me a line in the comments if this works for you or if you have any questions,


Brian Olsen @sagelikebrian




SageLike Post ID: SL0012

Applies to:
Windows 7 x64 (validated on a virtual machine and Dell laptop)
Windows 7 x86
Maybe others

References:

July 14, 2015

Citrix Default Printer Won't Retain

The Windows default printer is a magical thing. This is the printer that is selected by default when you print in an application. Depending on your particular printing workflow this may be the only printer you ever use. Some applications have a quick print functionality that sends a print job to the default printer using default settings and no prompts (for example, portrait orientation and a single copy). To make a printer your default, simply right-click it and select default printer.




When you use Citrix, a Windows default printer is still a Windows default printer. The difference is that Citrix has administrative policies to help you decide what will be the default.

I recently ran into an issue with a new XenDesktop v7.6 environment where users could select a new default printer using the method above but the next day when they logged on to their desktop it was set back to Microsoft XPS Document Writer. A quick note on Microsoft XPS Document Writer, as you may have noticed it installed on your computer, it is really a print-to-file driver Microsoft created to allow you to save print output in the Microsoft XML Paper Specification.  If you have never used it, do not feel bad, it is more likely you have used the immensely popular PDF format made popular by Adobe before becoming an open standard in 2008.

By default, the user's current printer is used as the default printer for the session. For example, my laptop's default printer is HP Deskjet 3520 series (Network).  When I logon to my Citrix desktop it will redirect the laptop printers into the session including my default printer.  That is ideal for a laptop user.




For my next example, I am using a thin client that does not have a default printer because it does not have an OS. It can only connect to a Citrix desktop. When I logon from the thin client it will not see a default printer so it will make the first printer on the Citrix desktop the default. Often times this ends up being the Microsoft XPS Document Writer instead of the HP Deskjet 3520 series (Network). At first, the issue seemed related to a Windows user profile issue since everyone lost their setting from one logon to the next.  After verifying that other Windows user settings were being retained (i.e. wallpaper, Office settings, and the printer mappings themselves), I moved on to Citrix print policies.

There is a specific policy I found interesting:

Default printer




Looking closer at the policy it defaults to "Set default printer to the client's main printer".  Most of the time this will result in using the default printer on the user's endpoint (e.g. laptop or desktop).  If that endpoint is a thin client or even an iPad it will not have a default printer to redirect so you will end up with the first printer in the session.

I made a new policy and set it to "Do not adjust the user's default printer" and gave it a higher priority then the others and assigned it to my test user account.




I then ran a gpupdate on each test worker to verify it had the new policy.  To test, I logged on with the test user, changed my default printer to a network printer.  I then logged out and put that test server in maintenance mode ensuring my next logon would go to the other test server.  Success, my new default printer was retained.  To be extra sure there was not anything cached locally, I rebooted both non-persistent workers and logged in again.  Success.  The final steps were to make the policy apply to more users and have them test before rolling it out to everyone on both the test and production workers.

Printing is rarely thought of as complicated but it always is.  If you are running into a similar issue then this policy change could be your answer.

Brian Olsen @sagelikebrian


SageLike Post ID: SL0010

Applies to:
Citrix XenApp
Citrix XenDesktop
Microsoft Windows Server 2008 R2
Maybe others

March 31, 2015

Citrix Access via Chrome is Broken

Purpose:
This post explains Google Chrome functionality that can negatively impact the access to any Citrix environment.

Symptom:
After clicking on a published application or desktop icon in StoreFront using Chrome--nothing happens.

or

After logging on to StoreFront using Chrome, it never thinks Citrix Receiver is installed and offers it to me to download before I get to see my icons.

or

You have a warning to, "Unblock the Citrix plug-in".



Resolution:
1) Re-enable the plugin using CTX137141.  This workaround will end in November 2015 when Google permanently disables NPAPI.
2) Customize StoreFront to remove the prompt to download Receiver with customized code.
3) Customize StoreFront with a link to download Receiver with customized code.
4) Enable a user setting to always open .ica files using CTX136578.
5) Use another browser not affected by the Chrome changes


Cause:
Back in November 2014, Google announced it will remove NPAPI support from Chrome.  They are making this change to, "improve security, speed, and stability" of the browser.   In April 2105, they will changing Chrome's default settings to disable NPAPI before removing it entirely in September of 2015.

What does this mean for my Citrix users who use Chrome?

Receiver detection.  The NPAPI plugin that Receiver (Windows and Mac) installs allows Receiver for Web (aka StoreFront) to detect if Citrix Receiver is or is not installed. Without this plugin, it assumes you do not have Receiver and will offer it for you to download and install. As an aside, you may have noticed that Internet Explorer has an ActiveX control that does the same thing. If your user does not have Receiver then they can not launch their Citrix application or desktop, so this is a good thing. If your user is already running Receiver but gets offered the Receiver download this will be confusing and could potentially be a bad thing.

Launching applications and desktops.  Let me explain what should happen when you click on the icon for, say, Outlook 2010 in StoreFront (aka Receiver for Web). StoreFront will talk to a delivery controller to figure out what machine is hosting Outlook 2010 and has the lowest load. StoreFront will then offer you a .ica file to download. If you have the plugin, Windows will know that this is a configuration file that should be opened by Receiver. Receiver will then connect you to your application. This all happens quickly and seamless making it seem like Outlook 2010 launches immediately.

Without the plugin, you will download an .ica file but Outlook 2010 will not open until you click it. Chrome does have the option (the arrow on the downloaded file) to “Always open files of this type” as shown in CTX136578.


SageLike Post ID: SL0009

Applies to:
Google Chrome
StoreFront (aka Receiver for Web)
Receiver
XenApp
XenDesktop
Maybe others

References:
http://blogs.citrix.com/2015/03/09/preparing-for-npapi-being-disabled-by-google-chrome/
http://blog.chromium.org/2014/11/the-final-countdown-for-npapi.html
http://support.citrix.com/article/CTX141137
http://support.citrix.com/article/CTX136578

February 24, 2014

Citrix XenDesktop 7.1 Slow Logon Black Screen

Purpose:
This article explains slow logon times for XenDesktop v7.1.  In addition to slow logons, the wallpaper may show as black during the initial logon process.

Symptom:
A slow logon is a relative thing and depends on a myriad of factors.  If your server or desktop logon does not show the progress wording on logon but instead has only black wallpaper then it is definitely worth testing out this registry key.  If you just think that your logon is slow, then it still may be worth the effort to test.

Resolution:
Add a new registry key to the master image (desktop or server).

Registry Key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Citrix\Logon
Name: DisableStatus
Type: REG_DWORD
Value: 00000001 

Before you add the key, establish a logon time baseline.  I historically like to do this manually using a stopwatch (iPhone) but the built in Director logon time functionality is an exciting new feature and will give you additional insight.  Here is an example of a Windows 7 baseline from the SageLike lab:


After adding the key, time another logon to see if your logon duration has improved.  Here is an example of the after:


This is a big improvement but YMMV.  An interesting side effect for Windows 2008 R2 server deployments is the return of the status text while establishing a session.  A blank black screen leaves the user to wonder if anything is happening at all.  This fix replaces the black wallpaper with the rapidly changing logon status information.  This cues the user that many things are happening to build their session.

Cause:
I have not found the history of this registry key or why it is absent when using the v7.1 VDA.  I have observed this working quite well for both Windows 7 and Windows 2008 R2 in a lab environment.  At the time this was written, the reference CTX article below only indicates it is applicable to XenApp 6.5

SageLike Post ID: SL0006

Applies to:
Windows 7
Windows 2008 R2
XenApp 6.5
XenDesktop 7.1
Maybe others

References:
CTX135782 Black Screen Logging on to a Published Desktop