How I Met Your Mother Gets Schooled by Covert Affairs' Peter Gallagher

Peter GallagherPeter Gallagher is imparting some of Sandy Cohen’s his wisdom on How I Met Your Mother.

The O.C. alum and Covert Affairs boss man will guest-star in a Season 8 episode of the CBS comedy as Ted’s former professor, TV Guide Magazine reports.

RELATED | How I Met Your Mother Stages a Buffy Reunion With Guest Star Seth Green

During his time at Wesleyan University, Ted was determined to impress his cocky and aloof architecture teacher. Sadly, his attempts failed to win Professor Vinick’s approval — and things haven’t changed much in the present.

The episode is tentatively slated to air Dec. 17.