Join domain rename x86 Windows XP scripted install not working correctly, machine reboots at wrong time or not at all
I'm attempting to run the join domain rename x86 post install task during a Windows XP scripted install. I downloaded this task from here: http://www.kace.com/support/resources/kb/article/How-to-rename-a-computer-and-join-it-to-a-Windows-domain-Image-Deployment
I have the join domain rename x64 one working in my Windows 7 build. I set up the x86 one the same way. I tested the x86 one by running it manually from the desktop. It works correctly.
When I add this as a post install task at the beginning of my tasks, it runs, and then the tasks underneath it also start runing. After 45 seconds the machine reboots right in the middle of it running another task, causing that install to fail. Once it boots back up it does it again.
I tried moving the join domain rename x86 to the end of the list, but when I do this it doesn't run for some reason. The machine logs on as the administrator and just sits on the desktop. If I manually reboot the machine nothing happens. I think this may be because once the join domain task starts, it jumps to the cleanup task at the end right away and deletes it...
How do I get this to run?