PowerShell: Get Asset Tag

Need to check a machine's asset tag - for IT inventory tracking or confirming a device is registered in your asset management system? This one-liner pulls it straight from the system.

Prerequisites:

  • Privileges: None
  • Module: Built-in, no import needed

Quick Command:

Get-CimInstance -ClassName Win32_SystemEnclosure | Select-Object SMBIOSAssetTag

Example Output:

SMBIOSAssetTag
--------------
IT-ASSET-00123
📦
Want all of them at once?
Get every free one-liner from this blog in a single downloadable bundle organized by category, each with full comment-based help. No more copy-pasting one at a time.

How It Works:

  • Get-CimInstance -ClassName Win32_SystemEnclosure queries the system enclosure (chassis) class, which holds physical case-level details.
  • SMBIOSAssetTag returns the asset tag string stored in firmware - unlike a serial number (assigned by the manufacturer), this is typically set manually by an organization's IT department when a device is added to inventory.

Pro Tip:

This is often empty on consumer machines and virtual machines, since asset tags are usually only configured in enterprise environments as part of IT asset management - an empty result here doesn't indicate a problem with the query.