admin管理员组

文章数量:1588130

1、查看CPU和内存条等信息


1、按 win + r 键打开运行窗口,输入 cmd 并回车打开命令行控制台窗口;

2、在命令行界面中输入 wmic 进入命令行系统管理执行脚本界面;

C:\Users\Administrator> wmic
wmic:root\cli>

3、输入命令 memorychip 进行查看内存条信息:

wmic:root\cli> memorychip
Attributes  BankLabel  Capacity    Caption   ConfiguredClockSpeed  ConfiguredVoltage  CreationClassName     DataWidth  Description  DeviceLocator  FormFactor  HotSwappable  InstallDate  InterleaveDataDepth  InterleavePosition  Manufacturer  MaxVoltage  MemoryType  MinVoltage  Model  Name      OtherIdentifyingInfo  PartNumber         PositionInRow  PoweredOn  Removable  Replaceable  SerialNumber  SKU  SMBIOSMemoryType  Speed  Status  Tag                TotalWidth  TypeDetail  Version
2                      8589934592  物理内存  1600                  16672              Win32_PhysicalMemory  64         物理内存     DIMM A         12                                                                              Kingston      19789       24          18756              物理内存                        99U5428-018.A00LF                                                    D8B4A8DA           24                1600           Physical Memory 0  64          128

从信息中可以看到,内存条容量 Capacity 为 8 G,内存频率 ConfiguredClockSpeed 为 1600,牌子 Manufacturer 为 Kingston。

4、输入命令 cpu get * 查看 CPU 的具体情况:

wmic:root\cli> cpu get *
AddressWidth  Architecture  AssetTag               Availability  Caption                               Characteristics  ConfigManagerErrorCode  ConfigManagerUserConfig  CpuStatus  CreationClassName  CurrentClockSpeed  CurrentVoltage  DataWidth  Description                           DeviceID  ErrorCleared  ErrorDescription  ExtClock  Family  InstallDate  L2CacheSize  L2CacheSpeed  L3CacheSize  L3CacheSpeed  LastErrorCode  Level  LoadPercentage  Manufacturer  MaxClockSpeed  Name                                      NumberOfCores  NumberOfEnabledCore  NumberOfLogicalProcessors  OtherFamilyDescription  PartNumber             PNPDeviceID  PowerManagementCapabilities  PowerManagementSupported  ProcessorId       ProcessorType  Revision  Role  SecondLevelAddressTranslationExtensions  SerialNumber  SocketDesignation  Status  StatusInfo  Stepping  SystemCreationClassName  SystemName       ThreadCount  UniqueId  UpgradeMethod  Version  VirtualizationFirmwareEnabled  VMMonitorModeExtensions  VoltageCaps
64            9             To Be Filled By O.E.M  3             Intel64 Family 6 Model 61 Stepping 4  252                                                               1          Win32_Processor    2201               9               64         Intel64 Family 6 Model 61 Stepping 4  CPU0                                      100       205                  256                        3072         0                            6      3               GenuineIntel  2201           Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz  2              2                    4                                                  To Be Filled By O.E.M                                            FALSE                     BFEBFBFF000306D4  3              15620     CPU   TRUE                                     NULL          SOCKET 0           OK      3                     Win32_ComputerSystem     DESKTOP-CF3UL0O  4                      46                      TRUE                           TRUE

比较重要的信息有:

  • AddressWidth:CPU 寻址宽度,64 表示 CPU 是 64 位的;
  • Name:CPU 型号,这里显示的是 Intel® Core™ i5-5200U CPU @ 2.20GHz
  • NumberOfCores:CPU 核心数;
  • NumberOfLogicalProcessors:CPU 线程数;

5、输入 wmic diskdrive get model,name,size 查看硬盘信息:

C:\Users> wmic diskdrive get model,name,size
Model               Name                Size
YMTC PC300-512GB-B  \\.\PHYSICALDRIVE0  512105932800

如果是在 powershell 中则可以输入 Get-PhysicalDisk 查看更详细的硬盘信息:

C:\Users> Get-PhysicalDisk
Number FriendlyName       SerialNumber                             MediaType CanPool OperationalStatus HealthStatus Usage            Size
------ ------------       ------------                             --------- ------- ----------------- ------------ -----            ----
0      YMTC PC300-512GB-B 0000_0000_0000_0000_A428_B73E_68C6_0049. SSD       False   OK                Healthy      Auto-Select 476.94 GB

6、输入 exit 退出。


2、查看笔记本电脑序列号 SN


C:\User> wmic bios get serialnumber
SerialNumber
2245A456B78C88Z990

3、查看电脑配置信息


有时候我们需要查看电脑的整理配置信息,比如操作系统版本、BIOS 版本,处理器、内存、IP 地址等等,我们可以在 cmd 窗口中输入 systeminfo 命令进行查看:

C:\User> systeminfo
主机名:           WTY-WUJIE14
OS 名称:          Microsoft Windows 11 家庭中文版
OS 版本:          10.0.22631 暂缺 Build 22631
OS 制造商:        Microsoft Corporation
OS 配置:          独立工作站
OS 构建类型:      Multiprocessor Free
初始安装日期:     2023/8/24, 9:08:12
系统启动时间:     2024/6/15, 13:31:54
系统制造商:       MECHREVO
系统型号:         WUJIE 14
系统类型:         x64-based PC
处理器:           安装了 1 个处理器。
                  [01]: AMD64 Family 25 Model 80 Stepping 0 AuthenticAMD ~2301 Mhz
BIOS 版本:        American Megatrends International, LLC. 0.27, 2023/4/20
Windows 目录:     C:\WINDOWS
系统目录:         C:\WINDOWS\system32
启动设备:         \Device\HarddiskVolume1
系统区域设置:     zh-cn;中文(中国)
输入法区域设置:   zh-cn;中文(中国)
时区:             (UTC+08:00) 北京,重庆,香港特别行政区,乌鲁木齐
物理内存总量:     32,159 MB
可用的物理内存:   16,649 MB
虚拟内存: 最大值: 34,207 MB
虚拟内存: 可用:   14,409 MB
虚拟内存: 使用中: 19,798 MB

本文标签: 常用命令电脑信息Windows