You can obtain the CPU speed from the command line on a Windows system, such as a Windows XP or Small Business Server (SBS) 2003 system by using the command
wmic cpu get CurrentClockSpeed
. Note: when you first
run the command, you may see "Please wait while WMIC is being installed."
or "Please wait while WMIC compiles updated MOF files." You may have to
wait a few minutes before seeing the results, but the next time you issue
a wmic cpu get
command you shouldn't have that delay. Also
note that this command is not available on Windows 2000 or prior versions
of Microsoft Windows.
The clock speed will be displayed in MegaHertz (MHz); if you want the value in GigaHertz (GHz), just divide by 1,000.
C:\>wmic cpu get currentclockspeed CurrentClockSpeed 1300
In the above case, the speed is 1300 Mhz, which is 1.30 GHz. The 1.30 GHz value could also be obtained through the Windows Graphical User Interface (GUI) by clicking on Start, selecting Control Panel, and then System on a SBS 2003 system.
You may also be able to get the processor speed along with the name using
wmic cpu get name
, but the speed won't necessarily
be displayed on all systems. The name will tell you whether it is an Intel
or AMD processor.
C:\>wmic cpu get name Name Intel(R) Celeron(R) CPU 1.80GHz
The following information was returned for a system with an AMD processor.
C:\>wmic cpu get name Name AMD Duron(tm)
References: