In 1999, Hanks won the role of Alex Whitman in the science-fiction series Roswell, where he appeared for the first two seasons (making a brief appearance in the third). During that time, he acted in the teen comedies Whatever It Takes with Shane West and Get Over It with Ben Foster. Hanks also made an appearance in an episode of The OC. He appeared in part eight of HBO mini-series Band of Brothers as Lt. Hank Jones. In 2002, he starred in his first film as Shaun Brumder in Orange County, alongside Jack Black and Schuyler Fisk. The comedy features Hanks trying to get into Stanford University after his guidance counselor mistakenly sends out the wrong transcript. In 2005, he appeared in the remake of King Kong, playing the assistant to Jack Black's character. In 2006, Hanks had a cameo role in Black's Tenacious D in The Pick of Destiny, playing a drunken fraternity brother. He starred in the romantic comedy The House Bunny, playing Oliver, a charming manager of a nursing home and the love interest of Anna Faris' character.