Go to file
2024-12-16 18:41:23 -06:00
.gitignore Initial commit. 2024-12-16 12:11:20 -06:00
Lenovo-Asset-Tag-Writer-env-template.txt Fixed/Refactored function to load environment variables from .env file. Refactored other stuff as well. 2024-12-16 13:42:53 -06:00
Lenovo-Asset-Tag-Writer.ps1 Restored local copy after branch mishap. 2024-12-16 18:41:23 -06:00
README.md Initial commit. 2024-12-16 12:11:20 -06:00

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=