You need to make sure that all the ESXi hosts that need to be customized are attached to the Host Profile you would be generating the customization file for. To learn how to attach hosts to a Host Profiles, read the recipe Attaching/detaching ESXi hosts to/from Host Profile.