CAMBRIDGE, Mass. — Amy Poehler turned the tables on her roasters, poking fun at Harvard and its famed Hasty Pudding theater troupe during its annual Woman of the Year award and roast Thursday.

The actress joked at the irreverent affair that she never expected to be feted by the Ivy League school she raised a “middle finger” to growing up in nearby Burlington, Massachusetts.

“I want to thank Hasty Pudding for reminding us how hard it is to write funny jokes,” she said after the two student roasters teased her about past roles in comedies such as “Baby Mama” and “Deuce Bigalow: Male Gigolo.”

The “Parks and Recreation” star and “Saturday Night Live” alum also poked fun at the university’s elitist reputation and pointed out the lack of female actors in her performance with the nation’s oldest undergraduate drama troupe.

“It’s unsettling that there will be no women on stage tonight,” Poehler said. “You know it’s time for a change when the Augusta National Golf Club has lapped you.”