Full screen at command prompt
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Mitch.B7D7B1B2CFEC4A4>c:\python25\python. exe
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import wmi, pythoncom
>>> pythoncom.CoInitialize()
>>> w=wmi.WMI()
>>> devices=[c.Dependent.DeviceID.upper() for c in w.USBControllerDevice()]
>>> for d in devices: print d
...
|