I have a question/problem.

I have a customer with the following situation.
An image with sysprep. In the sysprep file the user needs to enter the name of the PC. After an reboot the ZEN Agent gets installed. After installation the PC reboots and then starts ZISWIN. What the customers wants is that the PC joins the domain with the right name that is generated with ZISWIN. How can we make this possible? I have tried to use a method with batch files as mentioned in : myITforum.com : SysPrep Phase III - Rename PC & Join Domain Automatically