Run the installer of the Infrastructure Services version you want to upgrade to.
This may not be needed, but I do it as a safety net.
You should manually stop the Norskale Infrastructure Services service before upgrading to ensure the upgrade is successful.
Now start the Database Management Utility which will lead in 5b.
Now launch the Infrastructure Services Configuration Utility again:
C:\Program Files (x86)\Norskale\Norskale Infrastructure Services\Norskale Broker Service Configuration Utility.exe”
Repopulate with all values that you took the note off in the initial tests and allow the services to restart
Service account used here.
Upgrade Admin Console
Upgrade Agent host
I just do the basic install, I use to tell it to install the Cache on the D drive. But that’s really not needed anymore. I use BISF, and tell it to move it for me. I like to have a D drive on my machines (PVS).
Cache synchronization port. (Applicable to Workspace Environment Management 1909 and earlier; replaced by Cached data synchronization port in Workspace Environment Management 1912 and later.) The port on which the agent cache synchronization process connects to the infrastructure service to synchronize the agent cache with the infrastructure server. The cache synchronization port must be the same as the port you configured for the cache synchronization port (WEM Infrastructure Service Configuration > Network Settings) during the infrastructure services configuration. The port defaults to 8285 and corresponds to the AgentCacheSyncPort command-line argument.
Cached data synchronization port. (Applicable to Workspace Environment Management 1912 and later; replaces Cache synchronization port of Workspace Environment Management 1909 and earlier.) The port on which the agent cache synchronization process connects to the infrastructure service to synchronize the agent cache with the infrastructure server. The cached data synchronization port must be the same as the port you configured for the cached data synchronization port (WEM Infrastructure Service Configuration > Network Settings) during the infrastructure services configuration. The port defaults to 8288 and corresponds to the CachedDataSyncPort command-line argument. Alternatively, you can specify the port using a command-line option in the silent installation of the WEM agent
Wayne Lui states its backward compatible and still listens, But I would add this into your Firewall Ruleset.
This is one of those deals that can drive you mad. USB devices in Citrix. In my experience, this is big in health care, and Banks. Typically, users that interact with users a lot! I must admit, the USB docs are here, there, sideways, upside, and backward. The Docs point everywhere, and Citrix has done a great job providing all the information. But at times, I find it hard to put it all together. I am going to try to put this all in one place, as I know I struggle with this at times.
Optimized vs. generic USB device
Citrix does a good job on this and just touches at a high level the difference.
An optimized USB device is one for which Citrix Workspace app has specific support. For example, the ability to redirect webcams using the HDX Multimedia virtual channel.
This means Citrix has worked with the vendors to build the hardware classes inside the Virtual channels to provide superior low bandwidth support. This is geared around Citrix workspace and VDA Virtual Channels.
“HDX technology provides optimized support for most popular USB devices. Optimized support offers an improved user experience with better performance and bandwidth efficiency over a WAN. Optimized support is usually the best option, especially in high latency or security-sensitive environments.”
This link talks about Optimized for 3 sentences only. Then goes straight to Generic.
A generic device is a USB device for which there is no specific support in Citrix Workspace app.
This doesn’t mean it will not work, it just saying it’s not optimized and the USB device might not be as fast and will take more bandwidth. They still work, just not as good especially over WAN connections with Remote Offices.
“HDX technology provides generic USB redirection for specialty devices that don’t have optimized support or where it is unsuitable”
The USB device has more advanced features that are not part of optimized support, such as a mouse or webcam having more buttons.
Users need functions that are not part of optimized support, such as burning a CD.
The USB device is a specialized device, such as test and measurement equipment or an industrial controller.
An application requires direct access to the device as a USB device.
The USB device only has a Windows driver available. For example, a smart card reader might not have a driver available for Citrix Workspace app for Android.
The version of Citrix Workspace app does not provide any optimized support for this type of USB device.
This link talks about Generic USB but is listed under General Content redirection. Which makes sense. It goes in good detail on Generic USB Support.
Another good link is the USB classes and such. This helps me when I am configuring for generic as well.
USB device rules
USB device rules use one or more of six identifiers for USB devices. For specific rules, refer to www.usb.org. This website has the identifiers to use with XenDesktop.
At times when I need deep information about a USB device, I use a tool called USBDeview. As you can see here it gives some handy information. http://www.nirsoft.net/ is my source for this.
All these setting is from about 6-7 years’ worth of USB situations I been in.
I break down many options around Generic USB settings. The reason why is it seems to be what a lot of users use due to older devices. But when optimized devices are used, its GOOD! I prefer using the optimized USB virtual channel when I can as the experience is the best for me.
Working Actions and testing
Base settings, No Policies set in Studio, or Receiver/Workspace
No Registry hacks meaning nothing inserted for the Client (local clients)
This is a normal meaning Stock Client (local clients) with in Citrix Workspace
Nothing edited here (local clients) You will often at times see that this location, has a default device rules on what allow or blocked by defaults.
Optimized support offers an improved user experience with better performance and bandwidth efficiency over a WAN. Optimized support is usually the best option, especially in high latency or security-sensitive environments.
HDX technology provides generic USB redirection when optimized support is not available or unsuitable, for example: Some device just will not work with Optimized enabled
The USB device has additional advanced features that are not part of optimized support, such as a mouse or webcam with additional buttons.
Users need functions which are not part of optimized support, such as burning a CD.
The USB device is a specialized device, such as test and measurement equipment or an industrial controller.
An application requires direct access to the device as a USB device.
The USB device only has a Windows driver available. For example, a smart card reader may not have a driver available for Citrix Receiver for Android.
The version of Citrix Receiver does not provide optimized support for this type of USB device.
With generic USB redirection:
Users do not need to install device drivers on the user device.
USB client drivers are installed on the VDA machine.
At the time I written the article, optimized will not work for the scanners in the environment I was in. Generic will have to be set here. The Policies Below can be done to achieve this.
Remember to note this (Will come back to it soon)
Another Leading Missed concept
This doesn’t apply to us as we enable USB support but more information for the future when re-reading this
USB devices are automatically redirected when USB support is enabled, and the USB user preference settings are set to automatically connect USB devices
So, what I take from this if I have USB enable then it will redirect devices. If I don’t then I can set this reg devices to only allow certain ones.
Note: In Receiver for Windows 4.2, USB devices are also automatically redirected when operating in Desktop Appliance mode, and the connection bar is not present. In earlier versions of Receiver for Windows, USB devices are also automatically redirected when operating in a desktop appliance mode or with Virtual Machine (VM) hosted applications. However, it is not always best to redirect all USB devices, and this article describes how to configure whether a device must be automatically redirected or not. Users can explicitly redirect devices from the USB device list that are not automatically redirected. To prevent USB devices from ever listed or redirected, you can use Device Rules on either the client endpoint or the Virtual Desktop Agent (VDA). See Administration Guides for further details.
So, in other words, if I disable USB Device Redirection, I can control it more?
Or does USB have to be enabled but I can stop the auto Redirection? At the time of writing this article, I didn’t fully understand what this mean. OPtimzied USB setting don’t rely of the “USB Enabled? If Citrix Workspace has a Optimized ICA channel it will redirect and appear on the device viewer.
Let’s test this
Testing…..So, I disabled this
Now I will log in and it should not PASS anything.
Nothing passed as expected
Now let’s enable 1 reg setting back on the CTX123015 article. So, I want all Scanners to come through.
Now enable the (Connect USB Device)
Do a gpupdate /force the machine you’re on.
Check the registry to make sure the GPO changed on the client the GPO is applied to.
Reg Setting Set, Receiver GPO Set, log out then back in and it should come through as generic according to Citrix
I couldn’t get this to work, I am uncertain at this time what Citrix means by this.
Updated as of 3/2020) The reason that didn’t work was that I disabled USB redirection (Screenshot above) and at the time I thought by setting the device redirection on the client-side registry it would come through. But that’s not what those settings were for. They were for if USB is enabled, and it has them set up as Generic without the user having to click it every time, they logged in under Desktop Viewer.
I will re-enable USB redirection back and put things the way I had it.
The default key is 0, meaning all optimized is my assumption.
Then it comes in as optimized.
By setting these Registry Settings with a DWORD as 1
Is supposed to use the Generic Driver inside the VDA for XenDesktop.
Desktop Viewer Shows.
But when this popped up
If I clicked on it and selected the devices, then they came through as Generic.
(Note I need no user’s interaction so I will set it to pass through and connection as default on the receiver_workspace GPO)
But continue with the method anyways.
Log out then back in and it should do it by its self now. It worked.
Generic USB Way 2
This is intended to make it seamless for the end-user and to make them like Citrix again.
Please get the VID and the PID of the device.
Plugin the device on the local workstation.
Open device manager
Find your device
Right click and go to properties
Click the details tab
Change the property to Hardware Ids
The format you need is this
Now take this VID0711 PID5200 and create a key in the local registry of the local desktop.
Take out the wow6432Node and it’s the same path
Create a key under Devices. With the VID and PID number
Now add a DWORD called AutoRedirect and a value to 1
Now when you sign in to the XenDesktop Session you will need to open of the Citrix Receiver Preference. And select when a session start, connect the device. THIS IS A MUST for Generic to work (GPO is another option for this setting)
Not to get sidetracked but For that setting, you can do this
Now back to the session…
Log out and back in and you will now see your device redirected in as Generic
Now if you don’t want to connect the device automatically you have this option. When you first log in you will see this pop-up. Click on it.
Now you get this.
If I select my Fujitsu device, I will still get the generic option. Because I have the Generic Reg setting to 1. Meaning this.
My USB mouse and Keyboard keep redirecting in. I couldn’t figure this out. Citrix seen that this policy.
Which applies to….
Then forcing this on my Local Machine.
ALLOW:03 is a global HID for Mouse and Keyboards.
I created a Group and Put the XD7-BUS-### along with my machines and select deny.
Then when through on my machine and delete the orphaned keys.
Now things work as normal on my machine.
Generic USB Way 3
Citrix Discussion 376957 a user had the same issue. He solved it by doing this.
The problem was that in “Client USB device redirection rule” I have manually inserted some rules like “Allow: class=08”; after I have enabled “Use default value” and with your suggestion, the redirection works as I wanted.
In this article, it talks about adding the PID and VID in the Generic USB settings. It would appear that the Checkbox “Use default values” isn’t the only thing needed. By adding the PID and VID will redirect it as Generic. But I want all scanners to be generic. How do I achieve this? Follow the screenshots below.
This will do it for all Storage devices, or any device that is considered in the Generic Coding within these settings.
Then add registry AutoRedirectStorage=dword:1 , mass storage will behave as generic device for redirection
But for all generic device to be redirected you always have to select below options in cdviewer Preferences:
1. When session start connect device automatically
2. When new device attached connect device automatically
So overall you have to add registry and set checkboxes in preference, connections tab for auto redirection to work smoothly
Generic USB Way 4
Another Test I did, was I needed to Redirect Mass Storage, But Block my USB Video input for an extra monitor I had.
ALLOW: VID=ABCD PID=1234 #Mass Storage Device as Generic
(With this allow rule above I had to enable this as well)
DENY: VIP=0711 PIC=5200 #Block USB Video connection from Local PC to VDA
This is somewhat confusing, and Citrix E-docs aren’t the best for explaining all this. They have a lot of great information, but it runs together.
On the Windows 7 VDA you can see this. So it’s working as it should. ( Same on windows 10- validated up to 1809)
Generic USB Way 5
Another Test I would like to do is configure this on the receiver side.
I will remove my Studio USB ALLOW and DENY RULE.
Then apply it to my Citrix Receiver 4.5 ADMX in GPO.
Created the Citrix Receiver 4.5 Rule
Made sure the AutoRedirectStorage is still intact and set to 1 which redirects generic USB according to Citrix
Now on my Desktop (local Client)
Now let login to the VDA
This looked like it works as well.
One thing I noticed that if you use the Citrix Receiver/workspace ADMX for Generic USB Remoting. If you don’t have an ALLOW RULE for your devices. It will pass through but will be optimized by default. It’s like if you use the receiver GPO then use it all the way through.
For example, I am denying USB Video, but my scanner is coming through as Optimized and policy is set and I cannot override it.
I added this rule
Now on my VDA you can see, the Scanner came in great.
As you can see if I don’t have the USB allow Rule for my Mass Storage device, it come in as optimized and restricted.
Let’s update Citrix Receiver ADMX policy
Allow must before DENY, Like a Firewall ACL
Allow: VID=1DCC PID=482B #Ambir Scanner; Allow: class=08 subclass=06 prot=50 # Mass Storage; DENY: VIP=0711 PIC=5200 #Block USB Video connection from Local PC to VDA
Another of the noted example of Rules. Not applied here though
Allow: VID=1DCC PID=482B #Ambir Scanner; DENY: Class=08 Subclass=06 # Mass Storage; DENY: VIP=0711 PIC=5200 #Block USB Video connection from Local PC to VDA
DENY: VID=0781 PID=5202
Now he is not restricted but still no generic. I can enable generic. But I rather force it. So USB rule is allow me to use it in my session as generic or optimized.
Set my registry key storage for
Log of and back on.
USB Rule Gotchas
One thing I had to figure out was the Optimize policy setting for the USB device. This was geared around the Client drive redirection.
I would apply a USB rule within the Receiver ADMX file to deny a USB device.
Example: DENY: VID=0781 PID=5202
It then would redirect in and say this.
The device would still come it.
But I found out that I have to disable this policy in studio.
I went ahead and added this too
Now it will show policy restricted and allow the user to redirect it, which is good. For approved thumb drive devices our company will allow them to use.
But let’s say a Vendor has a security flaw on a USB Thumb drive, and I had the VID and PID.
Yes I have seen it were a thumb drive comes with a piece of software on the thumb drive, and it can be used for an entry point in your network. A lot of people I see, don’t take this seriously. This won’t happen to me. But if can and it will one day. I understand we have to provide users a good experience, but I see where a lot of sloppy IT guys just make it work to get them off the phone or are lazy and don’t want to deal with it. This isn’t good. So control it from a higher point will prevent this.
I can now apply the deny rule, and the Redirect option will be grey out.
This will ensure the USB Thumb drive (Mass Storage) device will not be used in the session. XA or XD
Now at this point, you control want is inserted.
Generic USB reg settings
To use generic USB redirection rather than optimized support, you can either:
In Citrix Receiver, manually select the USB device to use generic USB redirection, choose Switch to generic from the Devices tab of the Preferences dialog box.
Automatically select the USB device to use generic USB redirection, by configuring auto-redirection for the USB device type (for example, AutoRedirectStorage=1) and set USB user preference settings to automatically connect USB devices. For more information, see CTX123015
This can bite you if you have USB video cards, just put a deny rule in. So, it will not try to double-dip and redirect again.
Example: DENY: VID=0711 PIC=5200 #Block USB Video connection from Local PC to VDA
USB split devices.
There are times where you will need to split the composite USB device. A USB Composite Device is a peripheral device that supports more than one device class. Many different devices are implemented as composite devices. An example of this would be a Jabra or Plantronics headset.
How It Works
“When a user plugs in a simple USB device, the host device checks it against each policy rule consecutively until a match is found. The first match for any device is considered definitive. If the first match is an Allow rule, the device is redirected to the virtual desktop. If the first match is a Deny rule, the device is available only to the local desktop (that is its not redirected). If no match is found, default rules are used.”
“When a user plugs in a composite USB device (a device with multiple functions (interfaces) for example audio headset with speaker, mic and HID button) the host device checks for all functions (interfaces) against each policy rule. If the first match for any function(interface) is a Deny rule, the rule is considered definitive for the composite device and device is denied. If the first match for a function (interface) is an Allow rule, the host device continues to match the rules against next function (interface). The composite device is allowed if no function (interface) is denied by a policy rule. If definitive match for composite device is a Deny Rule, the device is available only to the local desktop otherwise the device is remoted to the virtual desktop. If no match is found, default rules are used.”
As you can see, there are a lot of USB settings. More than I would like to configure. But USB devices have come along way. Users have many options now. This blog is and was to help with the ease and confusion. If you see something that doesn’t make sense and doesn’t work. Please let me know. I may need to update the base of the setting on a new CR or LTSR release. But I follow this a lot when I forget how to do certain USB options. My experience is around Windows 10 devices or Windows 10 IoT.