Virtual USB Tools Server - Redirect local USB devices to a remote computer
Download Virtual USB Tools Hide this button

Server Command-Line Utility

Command-line utility server.cli.exe may be used as a simple API to manage shared USB devices. Command-line utility returns 0 if the requested operation is completed successfully, or non-zero error code (HRESULT). It also prints error description to STDOUT unless the --silent parameter is specified.

Command-line Parameters

The utility supports the following command-line parameters:

ParameterValueDescription
-?, --helpDisplays the list of supported parameters with short description.
--silentDo not display any error or success messages.
Main Commands
-listList local USB devices.
-list-sharedList shared USB devices.
-shareShare USB device(s) matching criteria.
-unshareStop sharing of USB device(s) matching criteria.
-show-public-keyDisplay the server's public key.
-renew-keyRenew server's encryption keys.
-set-port-fwConfigure port forwarding.
-clear-port-fwRemove port forwarding configuration.
Device Matching
--vid16-bit hexadecimal numberDevice Vendor ID.
--pid16-bit hexadecimal numberDevice Product ID.
--serial-numberstringDevice serial number.
--namestringDevice name.
--manufacturerstringDevice manufacturer.
--locationstringDevice connection location.
--instance-idstringDevice instance ID.
Share Options
--auth-keystringAuthentication key.
Unshare Options
--instance-idstringInstance ID of a device to stop sharing.
Port Forwarding Options
--external-discovery-port1-65535External discovery port. If omitted, current default discovery port is used.
--external-data-port1-65535External data port. If omitted, current default data port is used.

The command-line utility must be launched from an elevated command-prompt, PowerShell or Windows Terminal window. Use one (or more) of the options under “Device Matching” group to specify which devices you want to share.