We study a thin, laterally confined heated liquid layer subjected to mechanical parametric forcing without gravity. In the absence of parametric forcing, the liquid layer exhibits the Marangoni instability, provided the temperature difference across the layer exceeds a threshold. This threshold varies with the perturbation wavenumber, according to a curve with two minima, which correspond to long- and short-wave instability modes. The most unstable mode depends on the lateral confinement of the liquid layer. In wide containers, the long-wave mode is typically observed, and this can lead to the formation of dry spots. We focus on this mode, as the short-wave mode is found to be unaffected by parametric forcing. We use linear stability analysis and nonlinear computations based on a reduced-order model to investigate how parametric forcing can prevent the formation of dry spots. At low forcing frequencies, the liquid film can be rendered linearly stable within a finite range of forcing amplitudes, which decreases with increasing frequency and ultimately disappears at a cutoff frequency. Outside this range, the flow becomes unstable to either the Marangoni instability (for small amplitudes) or the Faraday instability (for large amplitudes). At high frequencies, beyond the cutoff frequency, linear stabilization through parametric forcing is not possible. However, a nonlinear saturation mechanism, occurring at forcing amplitudes below the Faraday instability threshold, can greatly reduce the film surface deformation and therefore prevent dry spots. Although dry spots can also be avoided at larger forcing amplitudes, this comes at the expense of generating large-amplitude Faraday waves.