Get USB serial number using Python?

Viewed 25

How can we get the serial numbers of the attached usb hardware with python code?

The usb dongle does not appear with the following code

import subprocess

print(subprocess.getoutput("C:\Windows\SysWOW64\wbem\wmic.exe diskdrive get model,serialnumber,interfacetype,description"))

0 Answers
Related