New Image using Attach to domain using existing host name
I am used to rolling out new images but generally I then have to give it a hostname, add it to the domain etc.
I am currently engaged on a project to create a new image to deploy across the firm, but this want to try and achieve the following:
1) Boot up PC via WOL
2) Take note of the current hostname
3) Image the PC
4) Attach to our network domain using the current hostname attributed to each device.
Does anyone have any best practise or knowledge on this as I am not really sure where to start.
Also, does anyone have any experience whereby once the pc has been attached to the domain with the existing hostname does it add it to active directory in the same OU it came from or does this have to manually be done.
Kind regards in advance
Answer Chosen by the Author
You create a pre task just prior to reformatting the drive to get the current name and use the set as a mid task to place it in the new image and as a post task use the join domain VBS to rejoin the newly imaged pc to the domain