Our results uncover a new persistent effect of postnatal AR signaling, with implications for neurodevelopmental disorders and sex differences in multiple sclerosis. Here, AR is linked to neurodevelopmental disorder.