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. |
Key | Description |
---|---|
list [-a] | Get the list of active sessions and their IDs. -a - show devices also. |
connect <srvID> <devID> | Connect the device devID to the server srvID. |
disconnect <srvID> <devID> | Disconnect the device devID from the server srvID. |
lickey [ [-f] <key file path> ] | usbsrvcmd.exe lickey - display license information. usbsrvcmd.exe lickey <key file path> - enter the license key. usbsrvcmd.exe lickey -f <key file path> - enter the license key even if any key was entered earlier. |
help | Shows 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.