Feb 21 2022 09:40 AM
Any way to retrieve the asset tag from our Dell Laptops in MEM?
Feb 22 2022 12:29 AM - edited Feb 22 2022 12:30 AM
Solution@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)
}
Feb 22 2022 12:29 AM - edited Feb 22 2022 12:30 AM
Solution@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)
}