Use USBSRVCmd.exe console program to configure the program via command line interface.
Note: Command line USBSRVCmd.exe file is created during the program install. You can find it within USB over Network (Server) program folder.
| Key | Description |
|---|---|
| share "USB_device_HWID" [-s "USB_device_serial_number"] |
Shares USB device which has "USB_device_HWID" hardware ID. When the [-s] option is specified, a USB device will be shared by its "USB_device_HWID" hardware ID and the "USB_device_serial_number" serial number. |
| shareport "RootHubNum:PortNum[:PortNum[:PortNum...]]" | Shares USB port. |
| unshare ["USB_device_HWID" [-s "USB_device_serial_number"]] |
Unshares USB device. The device which is unshared is specified by it's "USB_device_HWID" hardware ID. When the [-s] option is specified, a USB device will be unshared by its "USB_device_HWID" hardware ID and the "USB_device_serial_number" serial number. If there is no parameter specified, all the shared devices will be unshared. |
| unshareport "RootHubNum:PortNum[:PortNum[:PortNum...]]" | Unshares USB port. |
| as [=0|1] | Enables or disables auto-sharing of USB devices. |
| list [-v] [-p] |
Lists USB devices and shared USB ports When the [-v] option is specified, a serial number of each device will be displayed (if the device has one). If the [-p] option is specified, a list of shared USB ports will be additionally displayed. Output format: Devices: "Hardware ID" - ["Serial Number"] - "Port Id" - "Device Description" - "Location Information" Ports: "RootHub Number":"PortNumber"[:"Port Number"...] - "RootHub Name" : "Port Name" [ : "Port Name"... ] |
| ao [=0|1] | Enables or disables admin-only mode. If admin-only mode is enabled, unprivileged users can still share and unshare both devices and ports, but program preferences can be changed only by the administrator. |
| asne [=0|1] | Allows force disconnect of auto-shared USB devices. |
| kmas [=0|1] | Allows to share keyboards and mouses in auto-sharing mode. |
| ssl [-f] [=0|=1] |
Gets, enables or disables SSL settings. When the [-f] option is specified, SSL settings will be applied without checking path to the certificate revocation list. |
| ssl cert [path] | Path to the PEM-encoded Certificate file for the server. |
| ssl key [path] | Path to the PEM-encoded Private Key file for the server, Private Key must be unencrypted. |
| ssl use_ca [=0|=1] | Gets, enables or disables using of Certification Authorities chain file. |
| ssl ca [path] | Path to the certification authorities chain file. |
| ssl use_auth [-f] [=0|=1] |
Gets, enables or disables clients authentication. When the [-f] option is specified, SSL settings will be applied without checking path to the certificate revocation list. |
| ssl auth [path] | Path to the client authentication certificate list file. |
| ssl use_rev [-f] [=0|=1] |
Gets, enables or disables using of certificate revocation list. When the [-f] option is specified, SSL settings will be applied without checking path to the certificate revocation list. |
| ssl rev [-f] [path] | Path to the certificate revocation list. When the [-f] option is specified, SSL settings will be applied without checking path to the certificate revocation list. |
| help [key_name] | Shows this help. If key_name is specified, shows detailed help for this key. |
Get list of available USB devices:
C:\Program Files\USB over Network (Server)>usbsrvcmd.exe list -p -v Devices: USB\VID_046d&PID_c018&REV_4301 - - 2:2 - - Logitech USB Optical Mouse - unshared USB\VID_05e3&PID_0712&REV_9228 - 000000009225 - 6:5:3 - - USB Storage - not plugged USB\VID_067b&PID_2303&REV_0300 - - 5:3 - - Prolific Technology Inc. USB-Serial Controller - shared USB\VID_062a&PID_0003&REV_0000 - - 5:2 - MosArt - Optical Mouse - occupied by 10.0.0.29 Ports: 5:2 - RootHub5 : Port2 (Non-HighSpeed only) 6:4 - RootHub6 : Port4 (HighSpeed only) 6:5:3 - RootHub6 : Port5 : Port3
To share device, use command "share" and specify it's Hardware ID:
C:\Program Files\USB over Network (Server)>usbsrvcmd.exe share "USB\VID_062a&PID_0003&REV_0000" OK
Use "as" key to enable auto-sharing:
C:\Program Files\USB over Network (Server)>usbsrvcmd.exe as =1 OK
To unshare all USB devices use "unshare" key without specifying Hardware ID:
C:\Program Files\USB over Network (Server)>usbsrvcmd.exe unshare OK