UPDATE: Getting a Serial Number from the Command-Line

Hi Folks!

Waaaay back in 2015 I wrote this post that shows you how to get an OEM serial number or service tag from the command-line in most flavors of Windows.

That particular trick is now dead for most Windows 11 users. It relies on WMIC – Windows Management Instrumentation Command-Line – which Microsoft has removed from most versions of Windows 11.

WMIC was a built-in (digitally signed!) tool that IT administrators could use to inventory and configure corporate PCs. It’s been used as a malware pathway for ages, so it’s not surprising to see why Microsoft would remove it. Honestly, it probably shouldn’t have ever been installed on stand-alone PCs and\or only enabled when a PC joins a Windows domain.

In any case,

wmic bios get serialnumber

no longer works. Please try this PowerShell command instead:

Get-CimInstance win32_BIOS

You should see this. I’ve blacked the Service Tag, but you get the gist of it:

That’s it
Shawn

🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.