I'm currently looking for new ways of rejoining newly re-imaged computers back into the domain again and am wondering whether the following is doable somehow
1. Boot into WinPE2 and deploy image
2. Reset domain computer account (somehow)
3. Copy over modified sysprep.inf (for XP) or unattend.xml (for Vista) file which contains the proper computername
4. Reboot and allow sysprep to join the domain as the proper computername it's meant to be
If I'm lucky the bonus would be I wouldn't have to have a script to move the computer to it's proper OU and would also save myself a reboot (I'm currently using Netdom in conjunction with wsname which deletes the old domain computer allowing the rename to occur)
Apparently you can swap out Vista's unattend.xml file provided you do it before it reboots as others do this (not sure about XP) but I know/remember that if you were to try and join the domain using a computername that's already registered the domain controller will reject the request. So somewhere that domain computer will need to be reset
Is there anyway that this can be scripted and performed within WinPE2? I looked into Netdom /reset but I'm not sure if that will do it?
Cheers



Help
Back to top









