how to get bios asset tag value?

This topic contains 6 replies, has 3 voices, and was last updated by  Olaf Soyk 6 months ago.

  • Author
    Posts
  • #66922

    shiquan
    Participant

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

  • #66925

    Olaf Soyk
    Participant

    Try this

    Get-CimInstance -ClassName CIM_BIOSElement
    • #67011

      shiquan
      Participant

      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

      Joshua Taylor
      Participant

      Try

      (Get-WmiObject Win32_SystemEnclosure).SMBiosAssetTag
    • #67059

      Olaf Soyk
      Participant

      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

      Joshua Taylor
      Participant
      (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

      Olaf Soyk
      Participant

      Thanks

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

You must be logged in to reply to this topic.