 For the season , cast members John Krasinski , Jenna Fischer , Rainn Wilson , and Ed Helms were credited as producers . Krasinski also directed an episode . Guest directors for the season included noted actor Bryan Cranston , who directed the episode " Work Bus " , and filmmaker Jon Favreau , who directed the episode " Moving On " . Daniels directed the first episode , which he also wrote . This marked the first time that he had both written and directed an episode of The Office since the fourth season entry " Fun Run " . Ken Kwapis directed the series finale ; he also directed the show 's pilot episode . While The Office was mainly filmed on a studio set at Valley Center Studios in Van Nuys , California , the city of Scranton , Pennsylvania , where the show is set , was also used for shots of the opening theme . Angela Kinsey and Rainn Wilson , during an interview , expressed the hope to film an episode of the season in Scranton . Although this never came to fruition , exterior shots of the real Scranton bar The Bog were featured in the tenth episode " Lice " . 
