Command Line Interface
Use usbsrvcmd.exe console program to configure the program via command line interface.
Command line usbsrvcmd.exe file is created during the program installation. You can find it in USB for Remote Desktop program folder.
Command-line syntax cheat sheet
Notation | Example | Description |
---|---|---|
Text without brackets | command | Items which must be typed as shown. |
Text in square brackets | [optional] | Optional parameter. |
Text in angle brackets | <value> | Placeholder for user-provided values. |
Text in curly braces | { required_value =0|=1 } | Group of required choices. At least one option must be included. |
Pipe | option_1|option_2 | Divider between alternative options. Only one option can be selected. |
C:\Program Files\FabulaTech\USB for Remote Desktop (Server)\usbsrvcmd.exe USB for Remote Desktop console utility Copyright © 2000-2024 FabulaTech Usage: usbsrvcmd.exe [command] [option] Syntax: list List active sessions and their wksID. list [-a|-v|-o] List active sessions and devices: -a - show available USB devices also; -v - verbose output; -o - alternative style output. connect <wksID> <devID> Connect the USB device identified by devID and its host workstation identified by wksID. connect <wksID> -a <VID:PID:REV> {-p <Port> | -s <Serial>} Connect the USB device identified by VID:PID:REV and Port or Serial number and its host workstation identified by wksID. disconnect <wksID> <devID> Disconnect the USB device identified by devID and its host workstation identified by wksID. disconnect <wksID> -a <VID:PID:REV> {-p <Port> | -s <Serial>} Disconnect the USB device identified by VID:PID:REV and Port or Serial number and its host workstation identified by wksID. lickey [[-f] <key file path>] Display license information or enter the license key from the file -f - force applying (even if the license key is outdated). policy [-f "cmd file path"] Start policy configuration interactive mode or execute a batch of commands from a file. For more info about policy configuration see the product's User Manual. policy use_only_local_storage [1|0] Display setting value or set to use/disable local storage. policy storage_update_timeout [<value>] Display the Storage automatic update timeout setting value or set auto-update interval value in minutes. Default value is 90 min. Max value is 64800 (45 days). tshoot <wksID> <devID> -l smooth <value> Troubleshoot option: speed/smooth balance (for HID-devices), value: 1-10. tshoot <wksID> <devID> -p reset_port_power {1|0} Troubleshoot option: try to use a different method of device sharing. tshoot <wksID> <devID> -d reset_device_on_share {1|0} Troubleshoot option: try to reset device after sharing. log show Display the program log. log level error|debug Set the logging level to error or debug. help|/? Show this help.
Command Line Usage Examples:
List active sessions and devices:
C:\Program Files\USB for Remote Desktop>usbsrvcmd.exe list -a srvID:0 - sessionID:1 devID:0 - Wacom Co.,Ltd. STU-300 (shared) devID:1 - USB camera (shared) devID:2 - USB DISK 2.0 (shared)
Connect the device:
C:\Program Files\USB for Remote Desktop>usbsrvcmd.exe connect 0 1 Device is connected.