USB.GetSerialNumber
-------------------

Queries the serial number of an USB device.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [USB](component_USB.md) | [2.4](newinversion24.md) | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ❌ No |

MBS( "USB.GetSerialNumber"; Index ) 

**MBS**( **"USB.GetSerialNumber";** /\* Queries the serial number of an USB device. \*/  
**$Index**) /\* The index in the USB device table.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Index | The index in the USB device table. | 0 |

### Result

The serial number, e.g. "J678234".

### Description

Queries the serial number of an USB device.  
Please call [USB.Count](USBCount.md) before you use this function.  
### Examples

Query serial of first USB device:

 MBS ( "USB.GetSerialNumber"; 0 )  
### See also

- [USB.Count](USBCount.md)
- [USB.FindSerialNumber](USBFindSerialNumber.md)

### Example Databases

- [Utility functions/USB Devices](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Utility%20functions/USB%20Devices.shtml#1ScriptAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 17th May 2016

  
[USB.GetProductName](USBGetProductName.md) - [USB.GetVendorID](USBGetVendorID.md)

[HTML Version](USBGetSerialNumber.shtml)