# Lenovo SMBIOSAssetTag Writer Lenovo computers contain a BIOS property to store a device's asset tag accessible via WMI/CIM. ` Get-CIMInstance -ClassName Win32_SystemEnclosure -NameSpace root\CIMV2 | Format-Table -Property SMBIOSAssetTag ` Unfortunately, this field is not writeable without the use of a tool from Lenovo. This script helps automate the process of obtaining the asset tag from Snipe-IT and writing it to the BIOS for later retrieval through WMI. ## Environment Variables To run this project, you will need to add the following environment variables to your .env file. A template .env file is included for your convenience. `SNIPEIT_URL=` `SNIPEIT_TOKEN=` `AMIDEWINx64_URL=` `WINAIA_URL=`