Hello, its mainly just a script for making sure the computername is 14 chars... Might be redundant to use, but we had it since before using OSD++.
Dim sNewComputerName, oTaskSequence, sOSDComputerName
' Populate Task Sequence option values
Set oTaskSequence = CreateObject("Microsoft.SMS.TSEnvironment")
' Fetch Task Sequence variables
sOSDComputerName = oTaskSequence("OSDComputerName")
' Truncate
sNewComputerName = lcase(left(sOSDComputerName,14))
' Send the variable to the Task Sequence
oTaskSequence("OSDComputerName") = sNewComputerName
wscript.echo "Set Task Sequence variable OSDComputerName to " & sNewComputerName