Skip to content

Instantly share code, notes, and snippets.

@elderica
Created December 11, 2023 08:17
Show Gist options
  • Save elderica/944061f37f1bc018c70ad40445eb7817 to your computer and use it in GitHub Desktop.
Save elderica/944061f37f1bc018c70ad40445eb7817 to your computer and use it in GitHub Desktop.
記憶装置のシリアルナンバーを16進数表記で調べる
# シリアルナンバーを知りたい記憶装置だけ調べる
(Get-PhysicalDisk | Out-GridView -PassThru).SerialNumber | Format-Hex
# シリアルナンバーを一括で調べる
Get-PhysicalDisk | Select BusType, MediaType, FriendlyName, SerialNumber, {$_.SerialNumber | Format-Hex} | Out-GridView
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment