The photophysical and photochemical properties of push–pull photoswitches, such as stilbene derivatives, are very sensitive to their surroundings, allowing, e.g., for the control of the spectral properties or alternatively for probing the molecular environment. Here, we investigate how various adsorption motifs of 4-(N, N-Dimethylamino)-4’-nitrostilbene (DANS) on an amorphous glass surface influence its absorption spectra. Particular attention is given to the prominent first bright charge transfer state and the factors governing these modifications. The absorption spectra is simulated using time-dependent density functional theory on a large set of adsorption geometries that exhibit different kinds of molecule–surface interactions. We find that C–H⋯O interactions of the methyl or phenyl moieties with the glass affect the spectrum only marginally, whereas the dispersion interaction of the π system with the surface tends to diminish the intensity of the first absorption band. Moreover, an enhancement of the push–pull properties of DANS and a significant redshift occur whenever O–H⋯O hydrogen bonds with the NO2 group are present, whereas a hydrogen bond O–H⋯N to the NMe2 group results in a blueshift.