Thanks Craig, that will be very helpful! The following VB script is used to get the serial number of the hardward that the image is being deployed to. That serial number is then used to generate a batch file by the same name (to ensure uniqueness).
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystem")
Set colBIOS = objWMIService.ExecQuery("Select * from Win32_BIOS")
For Each objItem In colItems
WScript.Echo "SET MODEL=" & objItem.Model
Next
For each objBIOS in colBIOS
WScript.Echo "SET SERIAL=" & objBIOS.SerialNumber
Next
The batch file created with the serial number will be appended to include the requested server name insdie the text body, so that the requested name will perist through reboots. That name is then gleaned and applied to the newly imaged server using the following batch script:
echo Servername = %NEWNAME%
netdom renamecomputer %computername% /Newname:%NEWNAME% /FORCE
set CODE=%errorlevel%
if not %CODE%==0 goto RENFAIL
goto end
Please keep in mind that this works for out old manual process in which the image process is started by a manually mounted WinPE that has a menu which asks for the server name (among other things) upfront. What I'm hoping to do now is to pass the computername value from the Altiris console through to the same unique batch that contains the server name, so that it will still get picked up by the renaming script (above) that is embedded in the image. Problem is, I just don't know how to ask Altiris for that computer name value.