If you use GhostCast server to restore multiple machines, Ghost walker can change the computer names in a limited way to avoid duplicate computer names in Windows. Now you can use ghconfig with little bit of scripting to apply computer names from PreOS, and it is more flexible than Ghost walker. For most of the configuration changes, you need not the Ghost Client installed in the system. Depending on your environment, this method could be used with Console tasks too to apply arbitrary computer names instead of prefix-id based computer names.
This process is easier in WinPE than DOS since WinPE supports VBScript. For DOS you need to use a scripting tool such as AWK. Other than that, in WinPE you can get the MAC address using WMI (or ipcofig) but in for DOS you need to have a tool to get the MAC address when a packet driver is installed. This download contains a small utility, getmac.exe (thanks to Nigel Bree), that can read the MAC when a packet driver is installed.
Using a file containing MAC addresses and Computer names, a script can generate a configuration file with the required computer name, and GHConfig (in DOS) or GHConfig32 in PE can apply it to the newly cloned disk.
This is what you need to do.
11-11-11-11-11-11 TestComp1 11-11-11-11-11-22 Test2 11-11-11-11-11-33 user-1
For example, machine with MAC 11-11-11-11-11-33
CONFIG_COMMANDS COMPUTERNAME = "user-1" "user-1" DNSHOST = "user-1" "user-1" END_CONFIG_COMMANDS
Attached download has sample scripts for both DOS and WinPE. Please note that this is not a supported process but a workaround only, and the attachments are provided as examples. You need familiarity with scripting techniques to use this method, and need to change the scripts to suit your environment.
Since it uses WMI to get the MAC, use WinPE-512. If not, you can change the script to use output of ipconfig.
Example uses AWK script. Other than the files included in this download you need to download AWK.exe for DOS.