Get Physical Disk Serial Numbers Using PowerShell

Problem:

How do I retrieve the serial numbers of physical disks connected to my server using PowerShell?

Solution:

Run the below command:

Get-WMIObject win32_physicalmedia | select Tag,SerialNumber | sort-object SerialNumber | export-csv C:\Temp\DiskSerials.csv 

Leave a Reply

Your email address will not be published. Required fields are marked *