en-US citrix computer

RemoveOnLock

Verified with Citrix Workspace App 26.3.10 — updated on July 10, 2026

Supported on: All Citrix Workspace supported platforms

Path in the GPO console

Computer Configuration\Administrative Templates\Citrix Components\Citrix Workspace\Remoting client devices\Generic USB Remoting

Description

Specifies devices or classes to remove when the client machine is locked. Syntax: Each device is case-insensitive and of the form VID=XXX PID=XX;VID=YYY PID=YY Each class is case-insensitive and of the form class=XXX subclass=XX prot=X Example: class=03 subclass=01 prot=01;VID=173E PID=0046 Default Behavior: HID Keyboards and Mouse (class=03 subclass=01 prot=01;class=03 subclass=01 prot=02;class=03 subclass=00 prot=01;class=03 subclass=00 prot=02) are removed and auto redirected during client lock and unlock.

Registry

HKLM Software\Policies\Citrix\ICA Client\GenericUSB

More options available

Options

RemoveOnLock
RemoveOnLock text

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: RemoveOnLock
; State: Enabled
; Supported on: All Citrix Workspace supported platforms

[HKEY_LOCAL_MACHINE\Software\Policies\Citrix\ICA Client\GenericUSB]
"RemoveOnLock"=""
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: RemoveOnLock
# State: Enabled
# Supported on: All Citrix Workspace supported platforms

$path = 'HKLM:\Software\Policies\Citrix\ICA Client\GenericUSB'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'RemoveOnLock' -Value '' -Type String

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview