![]() With declarations : Public Const IOCTL_STORAGE_GET_DEVICE_NUMBER As Integer = &H2D1080 Gwmi Win32_USBControllerDevice |%", sSerialNumber) Getting it from USB controller using something like below:. ![]() Powershell command of "get-disk | select serialnumber" Problem is that a lot of them seem to show wrong valuesįor example if I look in properties of drive in Device Manager I can see serial number of drive is:-īut if I use WMI (just quickly from command line using "wmic diskdrive get serialnumber" for now OR using say WMI Explorer) it shows it as:-Ġ700079716000020 e.g. Tried various different methods as a test (not all VB related I know, but good for testing) ![]() Need to be able to retrieve serial number of USB hard drives and flash drives
0 Comments
Leave a Reply. |