Forum Discussion
SMBiosAssetag
- Feb 22, 2022
cbralick Reading the Asset Tag itself is easy
(Get-WmiObject win32_SystemEnclosure).smbiosassettagBut it's not something you can see in MEM itself, it's not a property in the hardware information... You could try to create a script which dumps the assettag to a central location together with the computer name so that you can link those?
For a customer we renamed the computername to match the asstettag. If the computername was not the same as the assettag, it would rename it and after the next reboot the device would appear in Intune with that nameif (((Get-WmiObject win32_SystemEnclosure).smbiosassettag -ne $env:COMPUTERNAME)) { Rename-Computer -NewName ((Get-WmiObject win32_SystemEnclosure).smbiosassettag) }
cbralick Reading the Asset Tag itself is easy
(Get-WmiObject win32_SystemEnclosure).smbiosassettag
But it's not something you can see in MEM itself, it's not a property in the hardware information... You could try to create a script which dumps the assettag to a central location together with the computer name so that you can link those?
For a customer we renamed the computername to match the asstettag. If the computername was not the same as the assettag, it would rename it and after the next reboot the device would appear in Intune with that name
if (((Get-WmiObject win32_SystemEnclosure).smbiosassettag -ne $env:COMPUTERNAME)) {
Rename-Computer -NewName ((Get-WmiObject win32_SystemEnclosure).smbiosassettag)
}