how to get bios asset tag value?

Welcome Forums General PowerShell Q&A how to get bios asset tag value?

This topic contains 6 replies, has 3 voices, and was last updated by

 
Participant
1 year, 9 months ago.

  • Author
    Posts
  • #66922

    Participant
    Points: 0
    Rank: Member

    I use get-wmiobject can not get asset tag value in bios.
    Please tell me to write this command

  • #66925

    Participant
    Points: 269
    Helping Hand
    Rank: Contributor

    Try this

    Get-CimInstance -ClassName CIM_BIOSElement
    • #67011

      Participant
      Points: 0
      Rank: Member

      in this "Get-CimInstance -ClassName CIM_BIOSElement" can not show asset tag,
      this command is show win32_bios, but i can not find asset tag preperty.

    • #67056

      Participant
      Points: 2
      Rank: Member

      Try

      (Get-WmiObject Win32_SystemEnclosure).SMBiosAssetTag
    • #67059

      Participant
      Points: 269
      Helping Hand
      Rank: Contributor

      hmmm ... I guess it depends pretty much on the underlying hardware, isn't it? On my Lenovo the command

      (Get-WmiObject Win32_SystemEnclosure).SMBiosAssetTag

      produces the result

      No Asset Information

      With the command

      (Get-CimInstance -ClassName CIM_BIOSElement).serialnumber

      I get my serial number without problems.

    • #67062

      Participant
      Points: 2
      Rank: Member
      (Get-CimInstance -ClassName CIM_BIOSElement).serialnumber

      and

      (Get-WmiObject Win32_BIOS).SerialNumber

      will produce the manufacturer's serial number. The asset tag is a configurable attribute that is blank by default. If it returns nothing then the asset tag has not been set in the bios. We assign the asset tag for internal tracking and accounting purposes.

    • #67066

      Participant
      Points: 269
      Helping Hand
      Rank: Contributor

      Thanks

                  _
                 /(|
                (  :
               __\  \  _____
             (____)  `|
            (____)|   |
             (____).__|
              (___)__.|_____

The topic ‘how to get bios asset tag value?’ is closed to new replies.