advice Question

Does anyone know a PowerShell command or WMIC query I can use to pull the actual NVMe hard drive serial number?

Avatar of Kenneth Reid
Kenneth ReidFlag for United States of America asked on
Powershell* WMIC
22 Comments1 Solution18 ViewsLast Modified:

Looking for a PowerShell command or WMIC query that will pull the actual NVMe hard drive serial number on a workstation (local and remote). The few that I've ran are displaying the hard drive S/N incorrectly. The commands are showing either the EUI64 number or Part number instead of the actual hard drive S/N which is what I need for a full inventory. 

The command I've tried in Powershell is: 

Get-PhysicalDisk | select-object friendlyname,serialnumber

Get-WMIObject win32_physicalmedia | format-List tag,serialnumber

Using the command prompt I've tried:

wmic diskdrive get model, name, serialnumber, manufacturer, caption, description

Philip Elder
Senior Technical Architect - HA/Compute/Storage
Join our community to see this answer!
Unlock 1 Answer and 22 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 22 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros