On March 2, 1865 at Fishersville, Virginia, Anderson captured a Confederate flag during the Battle of Waynesboro. On March 19, 1865, Anderson and other soldiers who had captured flags were given a 30-day furlough and the Medal of Honor by Secretary of War Edwin M. Stanton.