Skip to content

Instantly share code, notes, and snippets.

@ScottEvtuch
Last active April 1, 2023 14:19
Show Gist options
  • Save ScottEvtuch/d3e040d08afa475354b8f347d59e29bc to your computer and use it in GitHub Desktop.
Save ScottEvtuch/d3e040d08afa475354b8f347d59e29bc to your computer and use it in GitHub Desktop.
Enable Yubikey RemoteFX USB Redirection
Windows Registry Editor Version 5.00
; Enable Yubikey RemoteFX USB Redirection
; Created by Scott Evtuch
; https://gist.github.com/ScottEvtuch/d3e040d08afa475354b8f347d59e29bc
;
; MIT License
;
; Copyright (c) 2019 Scott Evtuch
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
; copies of the Software, and to permit persons to whom the Software is
; furnished to do so, subject to the following conditions:
;
; The above copyright notice and this permission notice shall be included in all
; copies or substantial portions of the Software.
;
; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
; SOFTWARE.
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client\UsbSelectDeviceByInterfaces]
"Yubikey Smartcard"="{50dd5230-ba8a-11d1-bf5d-0000f805f530}"
"Yubikey FIDO"="{745a17a0-74d3-11d0-b6fe-00a0c90f57da}"
@ScottEvtuch
Copy link
Author

To find the ID for other models of Yubikey (or any other device for that matter) look at the “Class Guid” property of the top level device in Device Manger. The easiest way to find the YubiKey is to look under “Smart card readers”. You can find the HID device by switching to “Devices by connection” in the “View” menu and looking for the other entires under the same “USB Composite Device”.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment