Search This Blog

Setting an Asset Tag on ThinkPads with a MDM

For anyone that would like to set an Asset Tag on their ThinkPad once the device is under management with either Intune or MobileIron, this post can provide a way of helping you achieve this.For those that are unaware, there is a Windows Utility to Read and Write Asset ID Information provided by Lenovo, specifically for ThinkPad. With this utility, you are able to set asset ID data such as an Owner Name, Owner Location, Asset Number and several other pieces of information. Per the ReadMe, here's a list of what can be set with the tool:

--------------------USERDEVICE <Field1> - These fields are defined by the user. : The maximum number of user fields is five. <Fieldn>

NETWORKCONNECTION NUMNICS GATEWAY IPADDRESS[n] (1<=n<=NUMNICS, default is 1) SUBNETMASK[n] SYSTEMNAME LOGINNAMENote: The USERASSETDATA.ASSET_NUMBER is available through WMI by querying the SMBIOSAssetTag field of the Win32_SystemEnclosure class.--------------------What's highlighted above is what's in the sample PowerShell script below, which can be deployed using the Intune Management Extension or MobileIron Cloud with Bridge.

Comments

Sorry for the late reply! We weren't receiving notifications on pending comments for some reason.

This should work in an OSD task sequence. Just create a Package containing the Read/Write utility and you can either add multiple Run Command Line steps calling WINAIA64.exe to set what you need or adjust the above script (removing the need to download the tool). Let us know if you run into any issue.