On the way to Petersburg, at the Battle of Waynesboro, March 2, he trapped the remainder of Early's army and 1,500 soldiers surrendered. On April 1, he cut off Gen. Lee's lines of support at Five Forks, forcing Lee to evacuate Petersburg. During this battle he ruined the military career of Maj. Gen. Gouverneur K. Warren by removing him from command of the V Corps under circumstances that a court of inquiry later determined were unjustified. President Rutherford B. Hayes ordered a court of inquiry that convened in 1879 and, after hearing testimony from dozens of witnesses over 100 days, found that Sheridan's relief of Warren had been unjustified. Unfortunately for Warren, these results were not published until after his death.