 Subsequently, he was engaged in the Battle of McDowell.He accompanied General John C. Frémont in his campaign up the Shenandoah Valley in pursuit of Stonewall Jackson, and was present at Cross Keys and Port Republic.In July 1862, he was temporarily detached from his infantry company and assigned command of an artillery battery in Winchester, Virginia.