WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

System Information

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

CPU Speed


The CPU information can be retrieved from the ProcessorNameString entry under the following registry subkey:
HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0 

Note In this example, 0 refers to the first CPU in the computer. In a multiprocessor system, 1 refers to the second physical CPU, or the second logical CPU in a system, such as a Intel hyper-threading technology system, that use multiple logical cores.

You can use RegConnect () to connect to remote searvers assuming you have appropriate access permissions.

Reference: http://support.microsoft.com/default.aspx?scid=kb;en-us;888282


Here is some WMI code that can handle it:

strComputer = "."
; Define constants
wbemFlagReturnImmediately = 16
wbemFlagForwardOnly = 32

; Connect to specified computer
objWMIService = GetObject( StrCat( "winmgmts://" , strComputer , "/root/cimv2" ) )
; Query processor properties
colItems = objWMIService.ExecQuery("SELECT * FROM Win32_Processor", "WQL", wbemFlagReturnImmediately + wbemFlagForwardOnly)
;Prepare display of results
ForEach objItem In colItems
	Message(strComputer, StrCat("Device Id: ", objItem.DeviceID, @lf, "CurrentClockSpeed ", objItem.CurrentClockSpeed, @lf, "MaxClockSpeed ", objItem.MaxClockSpeed))
Next
objWMIService = 0


Article ID:   W17030
File Created: 2007:07:03:14:27:42
Last Updated: 2007:07:03:14:27:42