garrison at Fort Washington, Maryland. He served as mustering officer for recruits in Baltimore, Maryland from June to August 1863, after which he returned to the garrison at Fort Washington, where he remained until March 1864. From March to November 1864, Miller served on an examining board for new officers at the War Department headquarters in Washington, D.C., and Annapolis, Maryland. He was promoted to captain on March 11, 1864. Miller commanded a battery in Kernstown, Virginia from November 1864 to February 1865. He took part in General Philip Sheridan's Shenandoah Valley movements from February to April 1865. He then took part in the Appomattox campaign, including the Battle of Dinwiddie Court House on March 31, 1865 and an engagement at Scotts Corner on April 2, 1865. He took part in the April 6, 1865 Battle of Sailor's Creek and the Battle of Appomattox Court House on April 9, 1865. Miller was present at Confederate General Robert E. Lee's surrender. Miller returned to Washington, D.C. with his regiment at the end of the war. He was promoted to brevet major on March 13, 1865 in recognition of his meritorious service during the campaign from Winchester to Richmond, Virginia. He was promoted to brevet lieutenant colonel on March 31, 1865 in recognition of his gallant conduct at Dinwiddie Court House. Post-war After the Civil War, Miller served with his regiment in Washington, D.C. from June 1865 to November 1867. He was on duty at Fort McHenry, Maryland from November 1867 to March 1870. He was on duty in Charleston, West Virginia from March to November 1870. From November 1870 to November 1872 Miller was again on duty at Fort McHenry. American Indian Wars Miller was on frontier duty at Fort Stevens, Oregon from November 1872 to June 1877 and took part in the Modoc War of 1872–1873. He was in command of an Artillery battalion during the Nez Perce War from June to October 1877. He served at the Presidio of San Francisco from November 1877 to June 1878. From June to September 1878 he took part in the Bannock War. Miller was assigned to Fort McDowell, California from October 1878 to October 1879. From October 1879 to August 1881, Miller was assigned to the Artillery School at Fort Monroe, Virginia. From August 1881 to August 1884, Miller served as an instructor of Artillery tactics at the United States Military Academy.