(Gast)
n/a Beiträge
|
AW: Aktuelle CPUFrequenz abfragen (SpeedStep)
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
|
|
Zitat
|