IT运维笔记


查看主板序列号

Linux: dmidecode Windows: wmic bios get SerialNumber /value

PowerShell查看系统信硬件信息

1. 查看计算机BIOS信息

PS C:\> Get-WmiObject -Class Win32_BIOS SMBIOSBIOSVersion : 6.00 PG Manufacturer : Phoenix Technologies, LTD Name : Phoenix - AwardBIOS v6.00PG SerialNumber : Version : Nvidia - 42302e31

2. 查看计算机内存信息

PS C:\> Get-WmiObject -Class Win32_PhysicalMemory Memory 0" BankLabel : Bank0/1 Capacity : 268435456 Caption : 物理内存 CreationClassName : Win32_PhysicalMemory DataWidth : Description : 物理内存 DeviceLocator : A0 PS C:\> Get-WmiObject -Class Win32_PhysicalMemory | %{$sum = 0} { $sum += $_.Capacity } {Write-Host ($sum / 1MB) "MB"} 1024 MB

3. 查看计算机处理器信息

PS C:\> Get-WmiObject -Class Win32_Processor AddressWidth : 32 Architecture : 0 Caption : x86 Family 6 Model 10 Stepping 0 CpuStatus : 1 CreationClassName : Win32_Processor CurrentClockSpeed : 1840 CurrentVoltage : 33 DataWidth : 32 Description : x86 Family 6 Model 10

4查看计算机硬盘信息

PS C:\> Get-WmiObject -Class Win32_DiskDrive Partitions : 4 DeviceID : \\.\PHYSICALDRIVE0 Model : Maxtor 6Y080L0 Size : 81956689920 Caption : Maxtor 6Y080L0

linux系统查看主机序列号

#dmidecode -t 1 System Information         Manufacturer: IBM         Product Name: System x3650 M3 -[7945I01]-         Version: 00         Serial Number: 99B0340         UUID: E5248D38-72C3-11DF-80F7-E41F13658F58         Wake-up Type:         SKU Number: XxXxXxX         Family: System x