Announcement

Collapse
No announcement yet.

New method to retrieve machine serial number

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    New method to retrieve machine serial number

    I've been using the following command to get the machine serial number from within Windows:

    WMIC bios get serialnumber

    Microsoft have said in the past that this was deprecated and going to be removed (which it now has in Windows 11 24H2 thus WMIC is no longer working). It can be reinstalled however that is a PITA to do on every machine. It's been replaced by new functions within Powershell and you can use the following command now instead from a Powershell window.

    get-ciminstance -class win32_bios

    This also shows the BIOS version as well in the output. This command works on Windows 11 23H2 and 24H2.

    #2
    Here`s a few more https://www.dell.com/community/en/co...ccf8a8de518d1c .I found that page while trying to find info on dell SKU`s
    All donations to badcaps are welcome, click on this link to donate. Thanks to all supporters

    Comment


      #3
      WMIC can be re-added in 24H2 by entering the following in an Terminal or Powershell admin window :

      DISM /Online /Add-Capability /CapabilityName:WMIC~~~~

      Haven't tried it, but I assume it works. I did see a note that this action might get blocked by SysAdmins on some corporate networks.

      The get-ciminstance is actually better for me as it dumps BIOS version too at the same time.

      Comment

      Working...