The president will take the oath of office Thursday outside the U.S. Capitol building , watched by unprecedented security and a crowd expected to number several hundred thousand people .