New Contributor

Any way to retrieve the asset tag from our Dell Laptops in MEM?

1 Reply
best response confirmed by cbralick (New Contributor)

@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)