IL-12 is a well-established driver of type 1 immune responses. Paradoxically, in several autoimmune conditions including neuroinflammation, IL-12 reduces pathology and exhibits regulatory properties. Yet, the mechanism and the involved cellular players behind this immune regulation remain elusive. To identify the IL-12-responsive elements which prevent immunopathology, we generated mouse models lacking a functional IL-12 receptor either in all cells or in specific populations within the immune or central nervous system (CNS) compartments, and induced experimental autoimmune encephalomyelitis (EAE), which models human Multiple Sclerosis (MS). This revealed that the CNS tissue-protective features of IL-12 are mediated by cells of the neuroectoderm, and not immune cells. Importantly, sections of brain from patients with MS show comparable patterns of expression, indicating parallel mechanisms in humans. By combining spectral flow cytometry, bulk and single-nucleus RNA sequencing, we uncovered an IL-12-induced neuroprotective adaption of the neuroectoderm critically involved in maintaining CNS tissue integrity during inflammation.