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.
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.
Comment