I do have a VBS script in a package and run it from the TS via a run command line like the tech article say's to do. I have tried the following script computername.vbs from MDT 2010 and it fails to run in the task sequence. I get an error that the oEnvironment variable has not been defined.
Option Explicit
Dim numCount
Dim strComputerName
Dim objOSD
Dim mname
strComputerName = InputBox ("Please enter a name for the new computer:" ,"New Computer Name",mname,10,10)
if strComputerName = "" Then
Wscript.Echo "You must enter a computer name."
Else
oEnvironment.Item("OSDNEWMACHINENAME") = strComputerName
oEnvironment.Item("OSDCOMPUTERNAME") = strComputerName
End If