Feb 18 2010 3:54PM GMT
Posted by: Richard Siddaway
Hardware,
Processor
We all want to know about the CPU(s) in our systems – after all that’s what makes them go
|
001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031 032 033 034 035 036 037 038 039 040 041 042 043 044 045 046 047 048 049 050 051 052 053 054 055 056 057 058 059 060 061 062 063 064 065 066 067 068 069 070 071 072 073 074 075 076 077 078 079 080 081 082 083 084 085 086 087 088 089 090 091 092 093 094 095 096 097 098 099 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
|
$arch = DATA { ConvertFrom-StringData -StringData @’ 0 = x86 1 = MIPS 2 = Alpha 3 = PowerPC 6 = Intel Itanium Processor Family (IPF) 9 = x64 ‘@ }
$fam = DATA { ConvertFrom-StringData -StringData @’ 1 = Other 2 = Unknown 3 = 8086 4 = 80286 5 = Intel386™ Processor 6 = Intel486™ Processor 7 = 8087 8 = 80287 9 = 80387 10 = 80487 11 = Pentium Brand 12 = Pentium Pro 13 = Pentium II 14 = Pentium Processor with MMX™ Technology 15 = Celeron™ 16 = Pentium II Xeon™ 17 = Pentium III 18 = M1 Family 19 = M2 Family 24 = AMD Duron™ Processor Family 25 = K5 Family 26 = K6 Family 27 = K6-2 28 = K6-3 29 = AMD Athlon™ Processor Family 30 = AMD2900 Family 31 = K6-2+ 32 = Power PC Family 33 = Power PC 601 34 = Power PC 603 35 = Power PC 603+ 36 = Power PC 604 37 = Power PC 620 38 = Power PC X704 39 = Power PC 750 64 = MIPS Family 65 = MIPS R4000 66 = MIPS R4200 67 = MIPS R4400 68 = MIPS R4600 69 = MIPS R10000 80 = SPARC Family 81 = SuperSPARC 82 = microSPARC II 83 = microSPARC IIep 84 = UltraSPARC 85 = UltraSPARC II 86 = UltraSPARC IIi 87 = UltraSPARC III 88 = UltraSPARC IIIi 96 = 68040 97 = 68xxx Family 98 = 68000 99 = 68010 100 = 68020 101 = 68030 112 = Hobbit Family 120 = Crusoe™ TM5000 Family 121 = Crusoe™ TM3000 Family 122 = Efficeon™ TM8000 Family 128 = Weitek 130 = Itanium™ Processor 131 = AMD Athlon™ 64 Processor Famiily 132 = AMD Opteron™ Processor Family 144 = PA-RISC Family 145 = PA-RISC 8500 146 = PA-RISC 8000 147 = PA-RISC 7300LC 148 = PA-RISC 7200 149 = PA-RISC 7100LC 150 = PA-RISC 7100 160 = V30 Family 176 = Pentium III Xeon™ Processor 177 = Pentium III Processor with Intel SpeedStep™ Technology 178 = Pentium 4 179 = Intel Xeon™ 181 = Intel Xeon™ Processor MP 182 = AMD Athlon™ XP Family 183 = AMD Athlon™ MP Family 184 = Intel Itanium 2 185 = Intel Pentium M Processor 190 = K7 201 = G4 202 = G5 203 = G6 250 = i860 251 = i960 260 = SH-3 261 = SH-4 280 = ARM 281 = StrongARM 300 = 6×86 301 = MediaGX 302 = MII 320 = WinChip 350 = DSP 500 = Video Processor ‘@ }
$type = DATA { ConvertFrom-StringData -StringData @’ 1 = Other 2 = Unknown 3 = Central Processor 4 = Math Processor 5 = DSP Processor 6 = Video Processor ‘@ }
Get-WmiObject -Class Win32_Processor | Format-List DeviceID, @{Name="Processor Type"; Expression={$type["$($_.ProcessorType)"]}}, Manufacturer, Name, Description, @{Name="CPU Family"; Expression={$fam["$($_.Family)"]}}, @{Name="CPU Architecture"; Expression={$arch["$($_.Architecture)"]}}, NumberOfCores, NumberOfLogicalProcessors, AddressWidth, DataWidth, CurrentClockSpeed, MaxClockSpeed, ExtClock, L2CacheSize, L2CacheSpeed, L3CacheSize, L3CacheSpeed, CurrentVoltage, PowerManagementSupported, ProcessorId, SocketDesignation, Status
|
<
The script just uses the Win32-Processor class & selects the relevant properties. We spend more time defining the data than we do actually running the script!
I’d be interested in hearing what’s the oldest processor discovered with the script – please leave a comment and let us know what you find