cor tadema

updated

4 years ago

0

1135

July 6th, 2022 07:00

Latitude 5430 extracting Serial number of NVMe drive

Until the Latitude 5430 we were able to use the Wmic (or the Get-WMIObject using powershel)  command to obtain obtaining the disk model and serial number.

Wmic diskdrive get caption, SerialNumber, FirmwareRevision 

Powershel:

Get-WMIObject -Class Win32_physicalmedia -ComputerName $laptopname | Format-List PSComputername, SerialNumber

However with the Latitude 5430 I am getting SerialNumber : FFFF_FFFF_FFFF_FFFF.

it might be a coincidence, but it looks very unlikely that the serial number of this drive = FFFF_FFFF_FFFF_FFFF.

Short of physically inspecting the drive, is there another way to obtain the serial number?

  • RoHe

    12 Elder

    •

    45230 Posts

    •

    172625 Points

    622

    0

    Posted July 6th, 2022 12:00

    Try using CrystalDiskInfo (free) or HWiFO64 (free).

    Both of those show the serial number of the Dell OEM (Micron) NVME SSD in my Dell desktop PC.

  • 632

    0

    Posted July 6th, 2022 07:00

    sorry correction on the powershel script, I copied the wrong line form my script so here the complete script:

    $laptopname = Read-Host -Prompt "which laptop"
    Do
    {
    IF (Test-Connection -BufferSize 32 -Count 1 -ComputerName $laptopname -Quiet) {

    Get-WMIObject -Class Win32_physicalmedia -ComputerName $laptopname | Format-List PSComputername, SerialNumber
    Get-WMIObject -Class Win32_DiskDrive -ComputerName $laptopname |Format-List model, SerialNumber
    } Else {
    Write-Host "laptop "$laptopname "is not on the network"
    }
    $laptopname = Read-Host -Prompt "next laptop or 0 to exit"
    } until ($laptopname -eq 0)