Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
650 B

  1. '
  2. ' test4.vbs
  3. '
  4. ' hardware id's
  5. '
  6. Dim WshSHell
  7. Dim DevCon
  8. Dim Devs
  9. Dim Dev
  10. Dim HwIds
  11. Dim HwId
  12. SET WshShell = WScript.CreateObject("WScript.Shell")
  13. SET DevCon = WScript.CreateObject("DevCon.DeviceConsole")
  14. SET Devs = DevCon.DevicesBySetupClasses("{4D36E96A-E325-11CE-BFC1-08002BE10318}")
  15. Count = Devs.Count
  16. Wscript.Echo "hdc: Count="+CStr(Count)
  17. FOR EACH Dev IN Devs
  18. WScript.Echo Dev + ": " + Dev.Description
  19. set HwIds = Dev.HardwareIds
  20. FOR EACH HwId IN HwIds
  21. WScript.Echo "HWID: " + HwId
  22. NEXT
  23. set HwIds = Dev.CompatibleIds
  24. FOR EACH HwId IN HwIds
  25. WScript.Echo "Compat: " + HwId
  26. NEXT
  27. NEXT