Wright's corps fought at Cold Harbor from June 3 to June 12, 1864. In the Valley Campaigns of 1864, he was dispatched to Washington, D.C., to defend against Confederate Lt. Gen. Jubal Early's raid on July 11 and July 12, 1864, commanding the Washington Emergency Defense Force, consisting of the VI, VIII, and XIX Corps. During the defense of Fort Stevens, he gained notoriety by inviting President Abraham Lincoln to join him on a parapet exposed to enemy fire. (A young staff officer, Oliver Wendell Holmes, is often said to be responsible for yelling at the president to get under cover. In George Thomas Stevens's post-war (1870) history of the VI Corps, Wright related to Thomas that he himself was the person who shouted at the president to get down.