"Wmic bios get serialnumber" is Officially Dead

Well, Windows, in its not so infinite wisdom, has removed “wmic” from the command that allows you to get the serial number of your computer in case the label on the back is illegible or completely worn off. I did a quick google search but have had no luck and now have to go to the teacher institute that is starting momentarily.

My official question: After you go to CMD as an administrator, what is the new command line for finding the serial number of your device? “Wmic” is not part of any answer, so that means that “answer” is old and unworkable.

We have a lot of old equipment, and the serial numbers can only be accessed through the CMD, so my inventory functions are in a world of hurt if I can’t get an answer that works.

In Powershell (launch it from the start menu, or type powershell from CMD), you can try this, but it might just say “To be filled by OEM”:

# Pick whichever query cmdlet this PowerShell version has
$q = if (Get-Command Get-CimInstance -ErrorAction SilentlyContinue) {
  { param($class) Get-CimInstance $class }
} else {
  { param($class) Get-WmiObject $class }
}

# @(...)[0] guards against classes that return several instances
$cs   = @(& $q Win32_ComputerSystem)[0]
$csp  = @(& $q Win32_ComputerSystemProduct)[0]
$se   = @(& $q Win32_SystemEnclosure)[0]
$bios = @(& $q Win32_BIOS)[0]
$bb   = @(& $q Win32_BaseBoard)[0]

$o = New-Object PSObject
$o | Add-Member NoteProperty Computer     $cs.Name
$o | Add-Member NoteProperty Manufacturer $cs.Manufacturer
$o | Add-Member NoteProperty Model        $cs.Model
$o | Add-Member NoteProperty BIOS_Serial  $bios.SerialNumber
$o | Add-Member NoteProperty Product_ID   $csp.IdentifyingNumber
$o | Add-Member NoteProperty BaseBoard    $bb.SerialNumber
$o | Add-Member NoteProperty Chassis      $se.SerialNumber
$o | Add-Member NoteProperty Asset_Tag    $se.SMBIOSAssetTag
$o | Add-Member NoteProperty PS_Version   $PSVersionTable.PSVersion.ToString()
$o | Format-List

It should output something like (but hopefully with real serials for you):

There’s not a one-size-fits-all command because there are different Windows versions, different Powershell versions, and different places manufacturers can put serial numbers (or not, in my case).

If the computer is from some major brand (Dell, etc.), their own Windows app (the thing you use to configure the hardware or download firmware updates, etc.) might also show it in the app itself.

If your computer has an online Serial Number, it should show up somewhere in your BIOS settings (before booting Windows).

You totally rock! :smiling_face_with_sunglasses: :100:

The boiled down version in case anyone else might need this info:
In search box type CMD and run it as an administrator.
Key: powershell
Key: Get-CimInstance win32_BIOS
It shows the serial number, the manufacturer, and the name of the computer.

Thank you, thank you, thank you, oh great one! :slight_smile:

PS: Sorry, I should have mentioned that this is for Windows 11 computers.

Yay!

I love this place :heart: .

Right you are! Just tested it and it is definitely there.
Gee, why would I think of checking the BIOS for something that had BIOS in its command line?! Hmm … LOL

I know, these folks are amazing. We should replace Congress with our SDMB members. We might still be able to save our nation.