@whity said in Hostname while joining to the domain:

I am planning to have FOG client installed in the golden image. Is it mandatory to have the Sysprep done before capturing the image?

Sysprep is a standard/typical step needed to make the reference image ready to install on multiple hardware. There are too schools of thought there. If you are using the idea that you will create one golden image per hardware model then you technically don’t “need” to run sysprep. But if you want to have one golden image for all hardware platform then you need to use sysprep to neutralize the golden image so that it can install on multiple hardware configurations. I can say I always run sysprep with my golden images. The decision to run sysprep or not is not related to FOG. FOG doesn’t care if the image has been syspreped or not.

Also, my understanding is that the FOG client is needed in the golden image to aid the domain joining while deploying the image? Is that right?

The fog client is needed if you want FOG to connect the target computer to AD, name the computer as defined in FOG, as well as if you want to run snapins or other fog managed services. In my case I don’t use FOG to connect the target computer to AD because I have a complex domain structure. I do use FOG’s post install scripts to calculate the proper AD location for the computer at deployment time and then update the unattend.xml file with the proper AD location and calculated computer name, then when Windows OOBE runs it looks at the unattend.xml file and connects the target computer to AD in the proper OU location. This is having windows setup connect the computer to AD and not FOG.