He was then transferred to the staff of Major General John Pope and served with him while the latter commanded the Union Army of Virginia in the summer of 1862; participating in the 2nd Battle of Manassas. Following that battle he was a witness against the accused at the court-martial of General Fitz John Porter.