Hunter served as president of the court-martial of Maj. Gen. Fitz John Porter. (He was convicted for his actions at the Second Battle of Bull Run, but was exonerated by an 1878 Board of Officers.) He also was assigned to the committee that investigated the loss of Harpers Ferry in the Maryland Campaign. He served briefly as the Assistant Inspector General of the Department of the Gulf.