LoginSignup
0
0

More than 1 year has passed since last update.

【PowerShell】コマンドでPCハード情報を確認する

Posted at

 
Windows PC のハード情報を記録しておくために使う PowerShell コマンドをまとめました。
全体的なスペック調査、使用パーツの確認などができます。

シリアル番号, 製品名, 型番

Get-WmiObject Win32_ComputerSystemProduct

 
実行結果例(一部書き換えてます)

IdentifyingNumber : (シリアル番号が表示されます)
Name              : (製品型番が表示されます)
Vendor            : NEC
Version           : NEC_Product
Caption           : コンピューター システム製品

OSバージョン

(Get-WmiObject Win32_OperatingSystem).Caption

 
実行結果例

Microsoft Windows 11 Pro

CPU

Get-WmiObject Win32_Processor

 
実行結果例

Caption           : Intel64 Family 6 Model 165 Stepping 3
DeviceID          : CPU0
Manufacturer      : GenuineIntel
MaxClockSpeed     : 2904
Name              : Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
SocketDesignation : U3E1

メモリ

Get-WmiObject Win32_PhysicalMemory | select PartNumber,SerialNumber,ConfiguredClockSpeed,ConfiguredVoltage,Capacity,DeviceLocator

 
実行結果例(一部書き換えてます)

PartNumber           : HMA81GU6DJR8N-WM    
SerialNumber         : (シリアル番号が表示されます)
ConfiguredClockSpeed : 2667
ConfiguredVoltage    : 1200
Capacity             : 8589934592
DeviceLocator        : ChannelA-DIMM1

ストレージ

Get-WmiObject Win32_DiskDrive

 
実行結果例

Partitions : 3
DeviceID   : \\.\PHYSICALDRIVE0
Model      : SAMSUNG MZVLB256HBHQ-000L7
Size       : 256052966400
Caption    : SAMSUNG MZVLB256HBHQ-000L7

最後に

PowerShellをいちいち起動して...がめんどくさかったりするので、バッチ作成してクリックすればすぐ実行できるように以下のように使ってます。

Powershell -command "<PowerShellのコマンド>"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0