The CBS network on Wednesday announced a new lineup that returns Robin Williams and Sarah Michelle Gellar to TV, and features new time slots for “Hawaii Five-0” and “Person of Interest.”

In one of the fall’s most interesting pairings, Williams and Gellar will team up in “The Crazy Ones,” a comedy from David E. Kelley (“Ally McBeal”) set in the world of advertising. Williams plays an unorthodox ad agency owner and Gellar, the former vampire slayer, plays his highly driven daughter.

Williams’ last regular TV role was on “Mork & Mindy” (1978-82), which launched him to stardom.

“The Crazy Ones” will air on Thursdays as part of a two-hour comedy block that includes another new show in “The Millers.” a multigenerational family sitcom starring Will Arnett, Margo Martindale, Beau Bridges and JB Smoove.

Other new CBS shows debuting in the fall include the comedies “We Are Men” and “Mom,” and the drama, “Hostages.”

“We Are Men” follows four single guys living in a short-term apartment complex (Tony Shalhoub and Kal Penn are among the cast), while “Mom” is described as an “edgy” family comedy starring Anna Faris as a newly sober single mom and Allison Janney as her overly critical mother. It comes from sitcom maestro Chuck Lorre (“The Big Bang Theory”; “Two and a Half Men”).

On the drama front are “Hostages” and “Intelligence.” The first is a high-octane suspense saga starring Toni Collette as an elite surgeon thrust into a political conspiracy when her family is taken hostage by a rogue FBI Agent (Dylan McDermott).

“Hostages” will build to a season finale in January and then give way to “Intelligence,” a thriller starring Josh Holloway (“Lost”) as a high-tech intelligence operative enhanced with a super-computer microchip in his brain.

CBS is the most-watched and most-stable broadcast network, and therefore boasts the largest roster of returning shows. That doesn’t mean, however, that it’s not tinkering with the schedule. Among the changes: “Hawaii Five-0” shifts from Mondays to Fridays at 9 p.m., and “Person of Interest” moves to Tuesdays at 10. Also, “Mike & Molly” (another Lorre comedy) gets benched for the fall and returns at midseason.

CBS also ordered two other shows for midseason, including “Reckless,” a legal drama, and “Friends With Better Lives,” a romantic comedy.

Among the shows not returning next season: “CSI: NY,” “Golden Boy” and “Rules of Engagement.”