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.

35 lines
1.2 KiB

  1. '
  2. ' test8.vbs
  3. '
  4. ' get current driver
  5. '
  6. on error resume next
  7. SET WshShell = WScript.CreateObject("WScript.Shell")
  8. SET DevCon = CreateObject("DevCon.DeviceConsole","\\localhost")
  9. SET Devs = DevCon.DevicesBySetupClasses("NET")
  10. Count = Devs.Count
  11. Wscript.Echo "net: Count="+CStr(Count)
  12. FOR EACH Dev IN Devs
  13. WScript.Echo Dev + ": " + Dev.Description
  14. Set Driver = Dev.CurrentDriverPackage
  15. IF NOT (Driver IS Nothing) THEN
  16. WScript.Echo "Driver: "+Driver.ScriptFile+" [" + Driver.ScriptName+"]"
  17. WScript.Echo "Device Description: "+Driver.Description
  18. WScript.Echo "Driver Description: "+Driver.DriverDescription
  19. WScript.Echo "Provider: "+Driver.Provider
  20. WScript.Echo "Manufacturer: "+Driver.Manufacturer
  21. WScript.Echo "Date: "+FormatDateTime(Driver.Date,vbLongDate)
  22. WScript.Echo "Version: "+Driver.Version
  23. WScript.Echo "Hardware IDs: "+Join(Driver.HardwareIds," ")
  24. WScript.Echo "Compatible IDs: "+Join(Driver.CompatibleIds," ")
  25. WScript.Echo "Driver files: "+Join(Driver.DriverFiles," ")
  26. WScript.Echo "Manifest: "+Join(Driver.Manifest," ")
  27. END IF
  28. NEXT