Tech Community Live: Microsoft Intune
Oct 01 2024, 07:30 AM - 11:30 AM (PDT)
Microsoft Tech Community
SOLVED

SMBiosAssetag

Copper Contributor

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

1 Reply
best response confirmed by cbralick (Copper Contributor)
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)
}

 

 

1 best response

Accepted Solutions
best response confirmed by cbralick (Copper Contributor)
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)
}

 

 

View solution in original post