We investigated the structure of ice under nanoporous confinement in periodic mesoporous organosilicas (PMOs) with different organic functionalities and pore diameters between 3.4 and 4.9nm. X-ray scattering measurements of the system were performed at temperatures between 290 and 150K. We report the emergence of ice I with both hexagonal and cubic characteristics in different porous materials, as well as an alteration of the lattice parameters when compared to bulk ice. This effect is dependent on the pore diameter and the surface chemistry of the respective PMO. Investigations regarding the orientation of hexagonal ice crystals relative to the pore wall using x-ray cross correlation analysis reveal one or more discrete preferred orientation in most of the samples. For a pore diameter of around 3.8nm, stronger correlation peaks are present in more hydrophilically functionalized pores and seem to be connected to stronger shifts in the lattice parameters.