Hi Folks,
I am trying to Set an Asset Tag number manually during SCCM TS for our Lenovo ThinkPad machines. Able to add a pane to MDT and ask for the Asset Tag and store it in a variable name 'TSAssetTag'. This portion works fine during OSD, I am not able to pass the value from the text field e.g. '1234' into the TS. I am not seeing the value from the text field anywhere in smsts.log. The end goal is to set the asset tag value and write to BIOS, I have a command line that I can run. I been looking online and closest articles I see is https://social.technet.microsoft.com/Forums/en-US/b874abfd-3877-4348-8571-6679fc6ede61/using-mdt-custom-input-field-to-set-asset-tag?forum=mdt . We must use a manual entered value from the text field to write to the BIOS only, need to pass the variable that I get from the custom pane. The Code I am using in 2 steps of TS in PS is below. Not sure what i am doing wrong here? Any guidance here would be great, thanks!
1.get Variable TSAssetTag
$tsenv = New-Object -COMObject Microsoft.SMS.TSEnvironment
$tsenv.Value('TSAssetTag') = $TSAssetTag
$LogPath = $tsenv.Value("_SMSTSLogPath")
2.\WinAIA64.exe -silent -set "USERASSETDATA.ASSET_NUMBER=$TSAssetTag"


