Einzelnen Beitrag anzeigen

hathor
(Gast)

n/a Beiträge
 
#10

AW: Aktuelle CPUFrequenz abfragen (SpeedStep)

  Alt 11. Nov 2015, 12:24
Mit VBS ist das einfach:

Code:
Set objWMI = GetObject("winmgmts://./root\cimv2")
set objRefresher = CreateObject("WbemScripting.Swbemrefresher")
Set objInterfaces = objRefresher.AddEnum(objWMI, "CIM_Processor").ObjectSet
Dim strList, I
Wscript.Echo "Click and Wait 10-15 sec ..."
    objRefresher.Refresh
    For each RefreshItem in objRefresher
        For each objInstance in RefreshItem.ObjectSet
        strList = strList & objInstance.Name _
      & vbnewline & " CurrentClockSpeed:  " & objInstance.CurrentClockSpeed _ 
      & vbnewline & " MaxClockSpeed:       " & objInstance.MaxClockSpeed
        Next
    Next
strList = strList & vbnewline & "--------------------------------"

For I = 1 to 10
    objRefresher.Refresh
    For each RefreshItem in objRefresher
        For each objInstance in RefreshItem.ObjectSet
        strList = strList & vbnewline & " CurrentClockSpeed:   " & objInstance.CurrentClockSpeed
        Next
    Next
    Wscript.Sleep 500
Next
Wscript.Echo strList
Miniaturansicht angehängter Grafiken
wsh_01.jpg  
Angehängte Dateien
Dateityp: zip CIM_Processor-11.zip (496 Bytes, 15x aufgerufen)
  Mit Zitat antworten Zitat