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.

42 lines
2.3 KiB

  1. REM Note that missing classes in log file mean tthe hat WMI cannot access them.
  2. REM Most likely this indicates a problem with the driver.
  3. REM See %windir%\system32\wbem\wmiprov.log and nt eventlog for more details.
  4. REM You could also delete the line On Error Resume Next and examine the
  5. REM specific VBScript error
  6. On Error Resume Next
  7. Set fso = CreateObject("Scripting.FileSystemObject")
  8. Set a = fso.CreateTextFile("speedwmi.log", True)
  9. Set Service = GetObject("winmgmts:{impersonationLevel=impersonate}!root/wmi")
  10. Rem SpeedPortFifoProp - Specialix Speed Port FIFO Properties
  11. Set enumSet = Service.InstancesOf ("SpeedPortFifoProp")
  12. a.WriteLine("SpeedPortFifoProp")
  13. for each instance in enumSet
  14. a.WriteLine(" InstanceName=" & instance.InstanceName)
  15. a.WriteLine(" instance.MaxTxFiFoSize=" & instance.MaxTxFiFoSize)
  16. a.WriteLine(" instance.MaxRxFiFoSize=" & instance.MaxRxFiFoSize)
  17. a.WriteLine(" instance.DefaultTxFiFoLimit=" & instance.DefaultTxFiFoLimit)
  18. a.WriteLine(" instance.TxFiFoLimit=" & instance.TxFiFoLimit)
  19. a.WriteLine(" instance.DefaultTxFiFoTrigger=" & instance.DefaultTxFiFoTrigger)
  20. a.WriteLine(" instance.TxFiFoTrigger=" & instance.TxFiFoTrigger)
  21. a.WriteLine(" instance.DefaultRxFiFoTrigger=" & instance.DefaultRxFiFoTrigger)
  22. a.WriteLine(" instance.RxFiFoTrigger=" & instance.RxFiFoTrigger)
  23. a.WriteLine(" instance.DefaultLoFlowCtrlThreshold=" & instance.DefaultLoFlowCtrlThreshold)
  24. a.WriteLine(" instance.LoFlowCtrlThreshold=" & instance.LoFlowCtrlThreshold)
  25. a.WriteLine(" instance.DefaultHiFlowCtrlThreshold=" & instance.DefaultHiFlowCtrlThreshold)
  26. a.WriteLine(" instance.HiFlowCtrlThreshold=" & instance.HiFlowCtrlThreshold)
  27. next 'instance
  28. Rem FastCardProp - Specialix Fast Card Properties
  29. Set enumSet = Service.InstancesOf ("FastCardProp")
  30. a.WriteLine("FastCardProp")
  31. for each instance in enumSet
  32. a.WriteLine(" InstanceName=" & instance.InstanceName)
  33. a.WriteLine(" instance.DelayCardIntrrupt=" & instance.DelayCardIntrrupt)
  34. a.WriteLine(" instance.SwapRTSForDTR=" & instance.SwapRTSForDTR)
  35. next 'instance
  36. a.Close
  37. Wscript.Echo "speedwmi Test Completed, see speedwmi.log for details"