He was appointed "Major General of Cadets" on December 18, 1861 according to the inscription below his statue shown in the accompanying image. Regardless whether the date of that appointment coincided with the date of his appointment as major general in the Virginia Militia, his appointments in the Confederate Army were only to positions with the rank of colonel. Major General John C. Breckinridge was commanding Confederate forces in the Department of Southwest Virginia during a critical time in the 1864 campaign in the Shenandoah Valley. Although he did not want to use the VMI cadets in battle, Breckinridge requested that Smith send them to reinforce his outnumbered army when Union forces began to move into the valley. On May 12, 1864, Smith sent almost the entire Corps of Cadets of VMI, leaving behind only 27 cadets to guard the Institute, to help hold off the advance of the Union Army under Major General Franz Sigel from the northern end of the valley. Smith, who was ill, also stayed behind. The cadets were led by 24-year-old Commandant of Cadets and VMI teacher Scott Ship. On May 15, 1864, the VMI Cadets earned distinction and fame at the Battle of New Market as the only Corps of Cadets in United States history to fight as a unit in battle. Ten cadets were killed and forty-seven were wounded in their valiant defense of the center of the Confederate line at a critical point in the battle. The Union forces were defeated and Sigel withdrew them to Mount Jackson and then to his headquarters at Cedar Creek, Virginia. On June 11, 1864, Major General David Hunter, who had replaced Sigel after New Market, ordered a retaliatory attack, his troops burning and shelling VMI's campus, forcing the relocation of classes to Richmond, where they remained until the city fell in April 1865. Classes returned to the Lexington campus in October, after the conclusion of the war. Smith oversaw the reconstruction of VMI after its destruction, and remained as superintendent until December 31, 1889. He died in Lexington on March 21, 1890, at the age of 77, and is buried in Stonewall Jackson Memorial Cemetery. His correspondence is retained by VMI.