> ## Content Index
> Fetch the complete content index at: https://www.filipkonopik.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# PowerShell: Get Disk Serial Number
- URL: https://www.filipkonopik.com/powershell-get-disk-serial-number/
- Published: 2026-07-19T03:01:39.000Z
- Updated: 2026-08-06T05:24:26.000Z
- Author: Filip Konopík
- Tags: Storage Devices

Need to identify a physical disk by its serial number - for asset tracking, warranty lookups, or confirming which drive is which in a multi-disk system? This one-liner pulls the serial number straight from the hardware.

Prerequisites:

- Privileges: None
- Module: Built-in, no import needed

Quick Command:

```PowerShell
Get-CimInstance -ClassName Win32_DiskDrive | Select-Object Name, SerialNumber
```

Example Output:

```Powershell
Name               SerialNumber
----               ------------
\\.\PHYSICALDRIVE0 PFVRR40FJAOFQNMZ3RQ5KCQ
```

📦

****Want all of them at once?**  
Get every free one-liner from this blog in a single downloadable bundle organized by category, each with full comment-based help. No more copy-pasting one at a time.

[Get the Complete Bundle for $39](https://gum.co/u/oczvkqdc?ref=filipkonopik.com)

How It Works:

- Get-CimInstance -ClassName Win32\_DiskDrive queries the physical disk drive class - this is different from Win32\_LogicalDisk, which reports on drive letters (C:, D:, etc.) rather than the actual physical hardware.
- Name shows the physical device path (e.g. \\\\.\\PHYSICALDRIVE0), which is useful for telling drives apart when a machine has more than one physical disk.
- SerialNumber returns the manufacturer's serial number burned into the drive - useful for asset tracking, RMA/warranty lookups, or confirming exactly which physical unit you're looking at.